Charting: Possible to set logarithmic scale on BarSeries X-Axis?

Oct 27, 2010 at 12:26 PM


I've looked through plenty of threads all around the www, but couldn't find an answer to this; I guess its not possible, but hope someone can prove me wrong :)

I hoped to be able to set such a property in the axes definition. Here's the one I'm currently using

   <dv:LinearAxis Orientation="X" Minimum="0" />
where dv points to the namespace System.Windows.Controls.DataVisualization.Charting

Btw in the forms namespace the Axis has such a property

Thanks, Philippe

Oct 27, 2010 at 1:19 PM

Having had a look at the source, I'd be happy to get an input to know if the workload I estimated would be right. Changes I see after a quick skim through the code:

- Create a new LogarithmicAxis class that either extends NumericAxis or LinearAxis (haven't dived deep enough to figure this out)
- Create enum NumericAxisScaling (containing Linear and Logarithmic for now)
- Add static attribute NumericAxisScaling in DataPointSeriesWithAxes
- Edit CreateRangeAxisFromData to take the above attribute into account in DataPointSeriesWithAxes

Mar 11, 2011 at 2:58 PM

Any luck with the Logarithmic scale?