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
1139
Two Line Charts, need same Y scale
posted

I've two line charts side by side, and need them to have the exact same Y scale.  I can see setting the UltraChart.Axis.Y.RangeMax and Range Min, but can't seem to get the values from the first chart, or is there another parameter that could be queried to get the min/max y scale to apply to the second chart.

Any suggestions?

Parents
  • 1139
    Verified Answer
    posted

    Sigh, had the solution in front of me, but there are actually 4 charts on the page, and I was pointing to the 4th chart instead of the 2nd, and the 4th was off the screen so I didn't see it being set.

    Find the Min and Max values, and apply them to both the charts:

    this.LoanTrendsUltraChart.Axis.Y.RangeType = AxisRangeType.Custom;
    this.LoanTrendsUltraChart.Axis.Y.RangeMax = max;
    this.LoanTrendsUltraChart.Axis.Y.RangeMin = min;
                
    this.UltraChart1.Axis.Y.RangeType = AxisRangeType.Custom;
    this.UltraChart1.Axis.Y.RangeMax = max;
    this.UltraChart1.Axis.Y.RangeMin = min;

    Problem Solved.

Reply Children
No Data