Menu

#13 Magnitude multiplier label

open
nobody
None
5
2012-09-19
2006-10-30
No

I needed to replace the standard magnitude multiplier
with some more user friendly text, eg. (10^3) as (in
thousands)

The patch contains a solution.

Discussion

  • Olaf Krumnow

    Olaf Krumnow - 2006-11-02

    Logged In: YES
    user_id=593430

    Sorry, needed to patch the patch. Those small differences
    between Java and .NET can sometimes drive me crazy.

     
  • Olaf Krumnow

    Olaf Krumnow - 2006-11-02

    patched Patch

     
  • John Champion

    John Champion - 2006-11-22

    Logged In: YES
    user_id=957634
    Originator: NO

    Hi,
    Axis.Title.IsOmitMag allows you to turn off the magnitude indicator so you can roll your own. Do you need something more than this?
    John

     
  • Olaf Krumnow

    Olaf Krumnow - 2006-11-27

    Logged In: YES
    user_id=593430
    Originator: YES

    Well, the patch replaces the default behaviour, instead of turning it off, which saves me from calculating myself. It's a simple exponent -> message dictionary. Work's great for me.

    Simply write:

            IDictionary<int, string> labels = new Dictionary<int, string>();
            labels.Add(3, "thousands");
            labels.Add(6, "millions");
            labels.Add(9, "billions");
            myPane.YAxis.Scale.MagLabels = labels;
    

    and you get an axis title like this

    Amount (thousands)
    

    instead of

    Amount (10^3)
    
     

Log in to post a comment.