Changing the y-axis in charts

(7 posts) (2 voices)

Tags:

No tags yet.

  1. bushraj, Member

    hey,

    I'm using
    select 'dbr.chart', 'MSBar';
    select 'dbr.chart.options','axis', 'Middle East', 'Temperary Solution', 'Severity 1';

    how i can change the y-axis value dynamically according to the result. for example if the query return for Canada . It changed to Canada from Middle East.

    Regards,

    Bushra

  2. bushraj, Member

    Plus how we can change the color of category shown on y axis

  3. myDBR Team, Key Master

    how i can change the y-axis value dynamically according to the result

    Select the text you want dynamically from the data instead of using static text.

    Plus how we can change the color of category shown on y axis

    Use the dbr.chart.color-command to define the chart colors.

    --
    myDBR Team

  4. bushraj, Member

    No , I mean to say how we can change the text color of categories shown on y axis
    like for if its month on Y axis .. the color of text January is in Red and March in green

  5. myDBR Team, Key Master

    Use may use native ChartDirector commands for axis formatting.

    --
    myDBR Team

  6. bushraj, Member

    i just figured out that i can change the label in this way :

    select 'dbr.chart.options','chartdirector', '$c->xAxis()->setLabelStyle("MS Serif.ttf",8,"Red");';

    but how can i change the style for the alternative records like .. Different style for first label and different for the second.

  7. myDBR Team, Key Master

    Having chart axis labels in different color is not really included in myDBR (and therefore not in support either). myDBR allows for you to access the chart object with full access to ChartDirector API for you to make desired changes.

    --
    myDBR Team


Reply

You must log in to post.