Hi there,
I recently realized that since upgrading to scichart version 5 my custom label provider has stopped working. With version 4 it has always been working fine.
The interesting thing is that the custom label provider works fine when making use of a “standard” NumericAxisViewModel:
IAxisViewModel newAxis = new NumericAxisViewModel ();
newAxis.TickProvider = new CustomTickProvider();
newAxis.LabelProvider = new CustomLabelProvider();
When applying the same logic to a LogarithmicNumericAxisViewModel however, the label providers “FormatLabel” is never called and so no custom labels are shown:
IAxisViewModel newAxis = new LogarithmicNumericAxisViewModel();
newAxis.TickProvider = new CustomTickProvider();
newAxis.LabelProvider = new CustomLabelProvider();
After doing some research I found out that the labelprovider is never attachd to the IAxisCore as the Init function of the labelprovider is never called when its set as the labelprovider of LogarithmicNumericAxisViewModel. (When its attached to a NumericAxisViewModel it is properly called). I suspect there’s bug somewhere in the LogarithmicNumericAxisViewModel that causes this unexpected behavior.
Any help would be appreciated.
Thanks in advance,
Mathieu.
- Mathieu Wernsen asked 6 years ago
-
Hi Mathieu, just a note – your profile shows ‘support expired’ but you’re using the latest version. Did you forget to activate your latest license? Please do so, then your profile will show ‘Priority Support’ in green. Best regards, Andrew
- You must login to post comments
Hi Mathieu,
Thanks for your question.
This issue has been fixed. You may find it in the latest nightly build (v5.3.1.12083).
To get the nightly build please follow the steps from: https://support.scichart.com/index.php?/Knowledgebase/Article/View/17232/37/getting-nightly-builds-with-nuget
Best regards,
Oleksandr Shvets
SciChart Technical Support Engineer
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
Please login first to submit.