BZ 2.17.6 HowTo set colors in generic charting

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

BZ 2.17.6 HowTo set colors in generic charting

Matthias Kienle
Hello *,

i would set my own colors for the dataset and write a further line in the
template reports/chart.png.tmpl

old code:
  graph.set(x_label           => x_label,
            y_label           => y_label,
            y_tick_number     => 8,
            x_label_position  => 0.5,
            x_labels_vertical => 1,
            x_label_skip      => x_label_skip,
            legend_placement  => "RT",
            line_width        => 2,
);

new code:
  graph.set(x_label           => x_label,
            y_label           => y_label,
            y_tick_number     => 8,
            x_label_position  => 0.5,
            x_labels_vertical => 1,
            x_label_skip      => x_label_skip,
            legend_placement  => "RT",
            line_width        => 2,
            dclrs             => [ qw(red yellow green orange black lred) ],
);

All datasets could not be displayed! HowTo use my own colors?

Regards
Matthias

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools