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

1
0

I’m reworking existing functionality to use SciChart. I need the resulting graph to look identical to original solution (or as close as possible).

In the screenshot you can see where I got so far (top) compared to the old solution (bottom). I got stuck trying to make the labels work.

I implemented a custom label provider as described here https://www.scichart.com/screenshots-xps-printing-x-axis-text-labels/ (I basically just took the CustomLabelProviderClass from there) I use the same list of labels as the old solution. What you see is as far as I got, using the following axis properties:

VisibleRange=”0,115″
DrawMajorGridLines=”False”
DrawMinorGridLines=”False”
LabelProvider =”{Binding LabelProvider}”
TickLabelStyle=”{StaticResource AxisLabelStyle}”
AutoTicks=”False”
MajorDelta=”0.5″
MinorsPerMajor=”1″
MinorDelta=”0.5″

The old graph does actually skip some of the values as well (about every other, unless I zoom in) but it still displays them with about double the density of the SciChart. Is there a way to make SciChart behave the same?

Also, I applied rotation transform on the labels to get them vertical. As you can see, now they stick into the graph. Is there a way to move them down a bit?

Images
  • You must to post comments
0
0

Hi there,

This has been answered on Stackoverflow!

http://stackoverflow.com/questions/36669145/scichart-showing-labels-for-all-ticks

Thanks for your question,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.