Home Forums StockChart Support Scatter dots affect line

Scatter dots affect line

Viewing 4 posts - 1 through 4 (of 4 total)
  • #59887

    Hello.
    I have multiaxis stock chart which has line:

    axisY2: {
                interval: 150,
                labelFontSize: 11,
                titleFontSize: 16,
                gridThickness: 0.5,
                gridColor: "gray",
                includeZero: false
    },

    And some scatters on that line:

    data: [{
                type: "line",
                showInLegend: true,
                axisYType: "secondary",
                lineThickness: 1,
                dataPoints: dataPoints_1
            },{
                type: "scatter",
                axisYType: "secondary",
                markerType: "circle",
                markerSize: 20,
                showInLegend: true,
                dataPoints: dataPoints_dots
            },

    All scatters are rendered with x,y of line.
    The problem is that scatters affects scale of line. When scatters are shown on line then the line changes its scale. How to avoid that?
    Here is photos of the same are with and without scatters displayed:
    no scatter
    with scatter

    #59890

    Another img hosting

    no scatter:
    no scatter
    with scatter:
    with scatter

    #59892

    It seems that scatter scales chart using dots outside of selected range, how to stop that?

    #59897

    @genn7,

    Can you please share JSFiddle along with sample data reproducing the issue you are facing so that we can understand your scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.