You must be logged in to post your query.
Home › Forums › StockChart Support › MarkerType with multiple y-values
Tagged: React
https://jsfiddle.net/voLfbg2y/3/
As you can see, the first values are not rendered in the graph since it has 2 y-values.
In this case, how can I get markerType with multiple v-values?
Also, I want to display second y-value in the text box.
For example, displaying 87 is in the text box, instead of 71.
@wellhys,
Line chart accepts only one y-value but in the JSFiddle shared above you are looking to plot a range of y-value(two y-value) for on the same x-value. In such cases where y-values have a range, you can try using the Range Area Chart or Range Spline Area Chart.
However, as your requirement is to plot a dataPoint at y-value 71 and want to display it as 87 in toolTip you can use toolTipContent property instead of passing two y-values as shown in the code snippet below: { x: 10, y: 71, toolTipContent: "{x}: 87", markerType:"triangle" }
{ x: 10, y: 71, toolTipContent: "{x}: 87", markerType:"triangle" }
Please take a look at this updated JSFiddle for a working example with sample code.
— Shashi Ranjan Team CanvasJS
wow thank you!
You must be logged in to reply to this topic. Login/Register