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
40
Problem of updating of WinChart
posted

I have got a problem to update a winchart when the number of data for the X-Axis change.

I use chart to show the evolution of a measure according to time. When the period of data changes the graph is updating but keeps the same space for the X-Axis. If I reduce the period the chart is smaller and if I increase the periode the chart is bigger and I do not see the end of the measure.

For to connect data to winchart I use :  this.ultraChartCourbes.DataSource = ds;

                                                         this.ultraChartCourbes.DataBind();

I try to ultraChartCourbes.ResetData before connect data, but it changes nothing.

If you want I can send you printscreen of my program

thanks

Parents
  • 26458
    Offline posted

    Try calling  Invalidate() or InvalidateLayers() on your chart. If this doesn't work make sure you're not using a custom range on your x axis (such as chart.Axis.X.RangeType = custom). If that doesn't work, please provide more detail about the chart type and the data being bound. Sample code would help the most.

Reply Children