Questions regarding MyDBR ChartJS implementation

(2 posts) (2 voices)


No tags yet.

  1. ppross, Member


    my company just upgraded to MyDBR-OEM - mainly for the ChartJS-Feature. While most Charts look great compared to ChartDirector, some Charts lack the functionality we need.

    1. What is the best way to color charts (like the bars in StackedBar-Charts)? Before, we did 'dbr.chart.options', 'label_color', 'labelname', 'color'; - This does not work anymore. 'dbr.chart.color', 'color1', 'color2' ... works just fine, but it's not very intuitive, especially when charts get big and tweaks need to be made.

    2. Is there a way to format labels? Right now, we have a StackedBar chart, where the default label format is applied (values of each subbar inside the bar itself). While this is fine, we need a 'total' value, which adds all the subbar values together: Like Bar 1: 5 Votes, Bar 2: 6 Votes, Total: 11 Votes. The latter should be shown above the bars - or whereever honestly, as long as it's displayed at all. Is there a way to do this?

    3. Is there a way to switch back to ChartDirector for specific charts only? It was possible for ChartJS via ‘dbr.chart.options’, ‘chartjs’;, but doing the same with 'chartdirector' instead does not seem to work.

  2. myDBR Team, Key Master

    each chart engine has its strengths. ChartDirector offers full customization options and charts usually look good when you use SVG output.

    Chart.js has a nice layout engine which makes charts usually look great with nice animations. The drawback of Chart.js is that it has fewer customization options. (label handling especially). We can take a look if something could be done about that.

    The label_color-option support for Chart.js has been added to the latest build.

    To use ChartDirector on selected charts, use the imagechart option (not chartdirector).

    myDBR Team


You must log in to post.