SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I am setting SCIDateTimeAxis as my XAxis by using the code:
let xAxis = SCIDateTimeAxis()
xAxis.style.labelStyle.color = UIColor.darkGray
xAxis.textFormatting = “dd MMM”
xAxis.visibleRange = SCIDateRange(dateMin: 2019-07-29 11:30:00, max:2019-07-29 11:30:00)
As I have a requirement to change the application Language to THI.
How can I set the locale to the axis, so the label visible on the axis should displayed in THI language.
As right now it is always visible in english irrespective of the language like 1 sep, 20 sep, 10 oct, 30 oct, 20 nov .
First of, please upgrade to v3 of the SciChart.iOS, so we can provide up-to date support.
From there – on date axis, you can specify custom label provider\formatter with proper locale, please see our API documentation
I’ve added the following label provider into our Mountain Chart Example,
let labelFormatter = SCIDateLabelFormatter(locale: Locale(identifier: "th_TH"), timeZone: TimeZone.current) xAxis.labelProvider = SCIDateLabelProvider(labelFormatter: labelFormatter)
Please see output in the attachments.
Hope that helps.
Please login first to submit.