This is a migrated thread and some comments may be shown as answers.

Display unit with kilo/Meg/Gig

1 Answer 19 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
sebastien
Top achievements
Rank 1
sebastien asked on 19 Sep 2019, 12:16 PM

Hello 

Our horizontal axis is always a frequency, is it possible to display the unit kilo/Meg/Gig,
for example display 1.2 GHz, 100kHz, 10MHz instead of 1200000 Hz, 100000Hz, 10000000Hz ?

thanks

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 23 Sep 2019, 02:15 PM

Hello Sebastien,

To achieve your requirement, you can use the LabelTemplate property of the axis along with an IValueConverter. For example:

<telerik:LinearAxis>
	<telerik:LinearAxis.LabelTemplate>
		<DataTemplate>
			<TextBlock Text="{Binding Converter={StaticResource MyStringToCustomUnitValueConverter}}" />
		</DataTemplate>
	</telerik:LinearAxis.LabelTemplate>
</telerik:LinearAxis>

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ChartView
Asked by
sebastien
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or