SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0 votes


I’m trying to achieve the looks of DateTimeCategory XAxis as shown on uploaded screenshot.

Formatting a single row of tick labels is not a hard task (setTextFormatting). The problem arises when there are 2 rows with same frequency (days of the week and dates) and third row with lower frequency (years).

I tried using new line character in text formatting property to break the line for days and dates and it didn’t work. I also tried having two axes bound to the same data series, each one having different formatting and majorDelta, but it seems that they don’t stack up (only first one added is shown).

Any ideas?

  • Igor Peric asked 4 years ago
  • last active 4 years ago
1 vote

I have 2 modes on my chart. One uses XAxis a NumericAxis and one uses DateTimeCategoryAxis. I can set the visible range when initilizing the control. The code should be the same in both cases except:

NumericAxis gets DoubleRange as VisibleRange
CategoryAxis gets IndexRange as VisibleRange

But if setting start and end value for the axis only the numericAxis displays something. The other one is empty.

I somehow understand that IndexRange is not really suitable to display anything if I set Min and Max Value and I haven’t yet understood how to transfer between DateTime values and the Index values but to start with:
How can I display the CategoryAxis the same as NumericAxis as long as the chart is empty?

Please see pictures.

  • Uwe Hafner asked 6 years ago
  • last active 6 years ago
1 vote

The VerticalSliceModifier does not seem to work with a DateTimeCategory X axis. Only the very top and the base of the line are shown and even they disappear on attempt to drag. Is slicing on DateTimeCategory Axis not supported?

The same code, taken from the official example, works well with a Numeric axis.

Showing 3 results
This template supports the sidebar's widgets. Add one or use Full Width layout.