The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am trying to use a custom label model by implementing the IChartAxisLabelModel interface. However, do I need to use a cusotm series model in order for this to work or can I mix and match with the ChartDataBindModel? The reason I ask is that after setting the PrimaryXAxis.LabelImpl to my custom label model, nothing happens and the interface is not getting called. Should I be doing something else as well?
I guess I could inherit from the ChartDataBindAxisLabelModel and override the appropriate bits. However, I would be interested if you can mix and match binding and custom label models.
Thanks
>Hi
I am trying to use a custom label model by implementing the IChartAxisLabelModel interface. However, do I need to use a cusotm series model in order for this to work or can I mix and match with the ChartDataBindModel? The reason I ask is that after setting the PrimaryXAxis.LabelImpl to my custom label model, nothing happens and the interface is not getting called. Should I be doing something else as well?
Thanks for your help.
Tareq
TKTareq KhanDecember 16, 2008 11:09 AM UTC
It's OK... I just realised that the ValueType for the axis must be set to custom in order for the custom label model to be used.
Thanks
>Hi
I am trying to use a custom label model by implementing the IChartAxisLabelModel interface. However, do I need to use a cusotm series model in order for this to work or can I mix and match with the ChartDataBindModel? The reason I ask is that after setting the PrimaryXAxis.LabelImpl to my custom label model, nothing happens and the interface is not getting called. Should I be doing something else as well?
Thanks for your help.
Tareq
MAManohari Syncfusion Team December 17, 2008 01:54 PM UTC
Hi Tareq,
Thanks for your interest in Syncfusion products. Yes, you are correct. For using custom labels with ChartAXis, the ValueType has to be set to Custom.