SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
I’m trying to acess ranges and build my code around this but Axis.GetMaximumRange() returns an incorrect value. It works correct after window_loaded event. What should I call to have correct range in axis?
I’ve attached sample project which shows 2 diagnostic traces, first is wrong, second is OK. Looks like while calling first renderable serie does not contain dataseries.
Axis.GetMaximumRange() calculates its range like this:
If your chart does not have DataSeries associated with the RenderableSeries, these will be ignored. This is expected.
Can you let me know what you are trying to do? Maybe there is another way,
Don’t know if this one is still actual, but the issue appears because of bindings late update. If it is needed to correct data immediately in constructor of the control, it can be moved to SomeMethod and invoked in constructor with Task.Factory.StartNew(new Action(() => Dispatcher.BeginInvoke(new Action(SomeMethod)))), so that it is performed after all other interim tasks on UiThread.
Please, refer to the attached code-behind file from the sample.
Please login first to submit.