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.
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
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.
Max, hi thereI have a similar problem wiht the implementation of WinChart (ver 9.1).
This idea is simple, call a different data source on a chart.
The data is dynamically generated from a spreadsheet table; when the spreadsheet is changed via some other user interaction, a new table is created and the chart should be redrawn.
I've tried the various chart Resetxxx methods, invalidate and invalidatelayers methods, however the chart isn't changing.
The chart is 3D and will sometimes be 2D as the ultimate goal for the app is user data choice and use chart choice (data availability depending of course)
Would appreciate your thoughts and snippet if possible. I'm using VB and WPF.
You see a library is created from IGs WinChart (I don't like the WPF version at the moment) and then hosted inside a WPF App. The WPF app gathers the user data and sends to the WinChart. It all works well with the exception of the data updating.
TIA
Steve