This project is read-only.

How do I style the chart components

Aug 28, 2009 at 8:57 PM

I would like to style the different components of the chart to blend in seamless with other controls in my project. Is it possible to have a sample on where to start. I would like to change the axis font, grid etc..



Aug 31, 2009 at 3:48 PM


Please take a look at a AxisColoringSample in Samples/v0.3.1. Maybe it will give you some answers on part of your question.

Also, to answer I need more details - what do you mean 'to change axis ... grid'?

Pictures can help me)


Best regards,


Sep 1, 2009 at 5:44 PM

Hi Mikhail

To be more specific, in the case of the axis I would like the ticks to be inside the plot rather than outside. I am also creating a graph where energy is plotted against wavelength and I was wondering how to do that. (something like this

Is it also possible to put labels on certain positions in the graph to identify certain points.



Sep 9, 2009 at 8:44 AM

Hi Jauwaad,

Currently DynamicDataDisplay does not support out-of-the-box ticks to be placed inside the plot, though this can be done by changing some part of AxisControl class. Also it is currently impossible to create such plots as you've shown, because this is AreaChart on the picture, and D3 doesn't have AreaChart, though it will have it in future.


To place a label in certain position on the plotter, you should place the following XAML into your plotter:


  <TextBlock d3:ViewportPanel.X="0.5" d3:ViewportPanel.Y="0.5">Sample text in position (0.5, 0.5)</TextBlock>




Sep 15, 2009 at 9:07 PM

Hi Mikhail,

I was going through the samples and I came across the ColumnChartSample in the NewMarkersSample Project. I managed to create the chart I was looking for the time being using columnChart. It's not perfect but will do for the time being..




Sep 17, 2009 at 5:50 PM

Hi Jauwaad,

I really forgot about this sample and this way of displaying data in the way you need, so I'm glad that you've discovered it)

I'm ready to help if there are some difficulties.