Mixed markers on the same Oxyplot line? - wpf

I have a plot where three lines are shown. Each line has a marker that identifies its type.
The user can choose a type of line and click on the plot to create those lines.
No problems this far.
The problem is that i need one of those lines to have two distinct types of markers, for example, the user can right click somewhere on the plot, which will open a context menu and choose one option that would create a point with a special marker for that line. The question is: is it possible to mix markers on the same LineSeries? If the answer is yes, how can I do that?
Thank you.

I'm not sure it qualifies as a data series, if it has different markers. I think you need to keep a line series showing the line and muliple line series showing the different markers. You then need to sync all the series when adding a point.

Related

Curved Line Charts

Is it possible to make the set the line charts to have curvature instead of straight lines?
I'm trying to get the desired curved line like the picture below.
It's impossible right now, but there is an issue for that https://github.com/tradingview/lightweight-charts/issues/506, so you can subscribe on it and/or provide additional information to the issue.

Building multiple arrays from a read textfile

I am trying to build multiple arrays from a read textfile. The read text file comes out as a long column of numbers, and I am trying to split them in groups of three, building arrays until I am done running through the numbers. Here is the block diagram. I know you need a for loop to do this, but figuring out a way to utilize it is giving me lots of trouble.
You need the Reshape Array primitive. See image.
The attached image is a PNG VI snippet. Drag it out of your browser onto a block diagram to instantiate the code directly. This snippet works with LV 2015 and earlier (as noted in the image in the upper right corner). You can create snippets for future posts by selecting code on the block diagram and choosing "Edit >> Create VI Snippet From Selection".

SSRS bar chart issue

I am trying to add one box and one line on x-axis. Please look at below bar chart.
I tried using stripline but I cannot set height for stripline. It goes till 100.
Is there any way I can do this?
Unfortunately, SSRS doesn't provide the functionality you're looking for. A stripline is the closest you can get to that, but like you said, you can't control its height. The only way you could simulate this behavior would be to use a Background Image for your stripline, but that may be more work than it's worth. It would require a lot of manual adjustment to get the image to line up on the chart.
I would add a series to the chart using the Stock chart (under Range). In the Series Properties I would set the High value to the height desired for your line (~52 in your example). Ideally this would come from a dataset value.
Set the Low, Open and Close values to 0.
Try two Stripe Lines. First, create the strip line which represents the vertical value you're after. In my case, I made one that was 50% of the graph height off of the Y-Axis.
Chart Properties:
Height of StripeLine:
Once the stripe line is the correct height for the chart, create a 'mask' stripe line along the X-axis that will cover the portion of the Y-axis line you want hidden.
Chart Propterites:
Width of Stripe Mask:
Using these methods, and some really clever expression writing, you should be able to make the line exactly as high, and as wide as you desire.

Initialize JFreeChart range axis values

I am trying to load dataset during initialization of the JFreeChart. But every time I tried to create a dataset with higher "number of item per series", the more data (all data) displayed visible in the chart (the bigger the dataset, the smaller the graph). But actually what I wanted is to have the fixed range of dataset values displayed on the chart while the rest is still hidden. Just the same way the data would normally be displayed in the actual trading platform, let's say Metatrader (MT4). First time when I open the chart I can see the screen filled with the only visible dataset of the chart and if I left-scroll the chart I will be able to see the old/history dataset as well. Does anyone have idea how to achieve this using JFreechart?
Really appreciate for any help or any thing/articles I can refer. Thanks so much!
You can use setRange() on either the domain or range axis, as shown in this fragment. If you've already tried this, it may help to edit your question to include an sscce and/or image that exhibits any problems you encountered.

Interrupted line/error mark in Dynamic Data Display Chart

I'm using Dynamic Data Display, for line chart (in WPF). I would like to interrupt the line, and display some "Error" label in that point (or on the X axis). Can somebody help me ?
Thank you.
You might use a DataPoint template selector for your datapoint in lineseries, when datapoint values are matching some errors criteria you can apply a different template to the datapoint and show an error label.
The way that I would approach this, is I would add a marker to your line graph every time this "error" occurred along your axes. If you wanted, you could make the tooltip for the marker say "error" or, even better, you could display some information about that error in the tooltip. You can use one of the markers already made in D3, or it's quite easy to create your own!
If you down load the source from Dynamic Data Display, there's many examples that have a similar requirement to yours that you could base your solution off of.

Resources