Skip to content

Do not work properly with bar-graphs #3

@jpileborg

Description

@jpileborg

When using this plugin with bar-graphs (bars: { show: true }), then the whole bar is drawn with top color.

For example, lets say I have the following constraints:
constraints: [ {
threshold: 3.0,
color: "#4f4fff",
evaluate: function(y, thres) { return (y <= thres); }
}, {
threshold: 5.0,
color: "#ff7f00",
evaluate: function(y, thres) { return (y <= thres); }
}, {
threshold: 5.0,
color: "#ff0000",
evaluate: function(y, thres) { return (y > thres); }
} ],

Everything lower or equal to 3.0 is displayed in a blueish color, everything between 3.0 and 5.0 is orange, and above 5.0 is red. Works for line graphs. But if I have a bar graph then all bars above 5 will be all red, and bars between 3 and 5 will be all orange.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions