Home Forums StockChart Support MarkerType with multiple y-values

MarkerType with multiple y-values

Viewing 3 posts - 1 through 3 (of 3 total)
  • #33825

    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.

    #33833

    @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" }

    Please take a look at this updated JSFiddle for a working example with sample code.

    CanvasJS Chart with customized toolTipContent and markerType


    Shashi Ranjan
    Team CanvasJS

    #33838

    wow thank you!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.