Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

belowThreashholdColour has no effect when yValue not visible #7

@kerner1000

Description

@kerner1000

I use the following configuration to draw a line chart:

scales: {
                yAxes: [{
                    position: "right",
                    ticks: {
                        beginAtZero: false
                    }
                }]
            },
bands: {
                yValue: 0,                // The threshold value on the yAxis (default is false)
                bandLine: { 	              // The display properties of the threshold line
                    stroke: 2,
                    colour: '#8B5A87',
                    type: 'dashed'
                },
                baseColorGradientColor: [
                    '#8B5A87'
                ],
                belowThresholdColour: [      // An array of the colors that describes the below threshold colour to use the above threshold color is inherited from the dataset
                    '#8B5A87'
                ]
            }

When I set beginAtZero to true, I see the threshold line and the line is colored as expected.

working
notworking

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions