Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1401
Data Zero align issue in composite areachart
posted

Inspite of my several experiments based on my understanding, I was not able to succeed to align the chart origin to (0,0).

I used a composite chart with a layer of type AreaChart. The labels on X-axis were starting from the minimum value

of the series data by default.The Y-axis was proper

I want the X-axis labels to be start from "0".

I tried by setting ulctrachart1.data.ZeroAlign = true, but even that also ended in negative

I tried setting X-axislabel item formattingstring to "<ITEM_LABEL:00.##>", but even this also negative

Any idea?

 

  • 28496
    Offline posted

     in an area chart, the x-axis is not a numeric scale, it's just a set of strings.  only a ScatterChart or BubbleChart have both a numeric x-axis and y-axis.

    try setting axisX.RangeType = Custom, axisX.RangeMax = numberOfDataPoints, and axisX.RangeMin = indexOfFirstDataPointToShow.