Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] grid and region for gauge chart #2120

Closed
adschm opened this issue Jun 2, 2021 · 1 comment
Closed

[feature] grid and region for gauge chart #2120

adschm opened this issue Jun 2, 2021 · 1 comment

Comments

@adschm
Copy link
Contributor

adschm commented Jun 2, 2021

I'm trying to build a gauge chart with threshold values displayed inside the chart.

Therefore, it would be helpful if one could have lines or regions defined for the gauge chart as well, similar to what is done for a line plot:

        grid: {
            x: {
                lines: [
                    {
                        value: 2,
                        text: 'lower threshold'
                    },
                    {
                        value: 5,
                        text: 'upper threshold'
                    }
                ]
            }
        },
        regions: [
            {
                start: 3,
                end: 4,
                class: 'chart-optimum-region'
            }
        ]

I suspect that regions would be hard to deal with reasonably, but drawing lines could be doable and should work for both single/multi type.

Is there already any hook available to hack this in right now?

@netil
Copy link
Member

netil commented Jun 3, 2021

Hi @adschm, thanks for the issue. This might be similar with #1082.
I will consider for the next release.

netil pushed a commit to netil/billboard.js that referenced this issue Jan 29, 2024
Implement new arc.rangeText option, which can display
a range in Arc shape.

Ref naver#2120
netil pushed a commit to netil/billboard.js that referenced this issue Feb 5, 2024
Implement new arc.rangeText option, which can display
a range in Arc shape.

Ref naver#2120
netil pushed a commit to netil/billboard.js that referenced this issue Feb 7, 2024
Implement new arc.rangeText option, which can display
a range in Arc shape.

Ref naver#2120
netil pushed a commit to netil/billboard.js that referenced this issue Feb 7, 2024
Implement new arc.rangeText option, which can display
a range in Arc shape.

Ref naver#2120
netil pushed a commit to netil/billboard.js that referenced this issue Feb 13, 2024
Implement new arc.rangeText option, which can display
a range in Arc shape.

Ref naver#2120
netil pushed a commit to netil/billboard.js that referenced this issue Feb 13, 2024
Implement new arc.rangeText option, which can display
a range in Arc shape.

Ref naver#2120
@netil netil closed this as completed in e887baf Feb 13, 2024
github-actions bot pushed a commit that referenced this issue Feb 13, 2024
# [3.11.0-next.2](3.11.0-next.1...3.11.0-next.2) (2024-02-13)

### Bug Fixes

* **regions:** Fix applying regions class ([7e4fa71](7e4fa71)), closes [#3611](#3611)

### Features

* **arc:** Intent to ship arc.rangeText ([e887baf](e887baf)), closes [#2120](#2120)
* **gauge:** Intent to ship gauge.enforceMinMax ([c277201](c277201)), closes [#2125](#2125)
* **gauge:** Intent to ship gauge.label.ratio ([d4e49ba](d4e49ba)), closes [#3633](#3633)
github-actions bot pushed a commit that referenced this issue Feb 15, 2024
# [3.11.0](3.10.3...3.11.0) (2024-02-15)

### Bug Fixes

* **Axis:** Correct x axis height calculation for autorotated x axis tick texts ([d5b5d09](d5b5d09)), closes [#3584](#3584) [#3585](#3585)
* **axis:** Fix x Axis tick height calculation ([ac26f11](ac26f11)), closes [#3643](#3643)
* **axis:** Fixed x axis tick texts rotation when legend is positioned right ([ed4703e](ed4703e)), closes [#3570](#3570) [#3571](#3571)
* **packages:** Fix build error with moduleResolution:bundler ([9c17eea](9c17eea)), closes [#3541](#3541)
* **radar:** Fix axes texts exclusion on resize ([3a814a5](3a814a5)), closes [#3126](#3126)
* **regions:** Fix applying regions class ([7e4fa71](7e4fa71)), closes [#3611](#3611)
* **tooltip:** Fix tooltip position from interference ([9d28cbb](9d28cbb)), closes [#3575](#3575)
* **tooltip:** Fix wrong tooltip selection on browser scroll change ([#3593](#3593)) ([8f80637](8f80637)), closes [#3592](#3592)
* **zoom:** Fix zoom state on data load ([967207b](967207b)), closes [#3422](#3422)

### Features

* **arc:** Intent to ship arc.rangeText ([e887baf](e887baf)), closes [#2120](#2120)
* **axis:** Add x.tick.text.inner option ([cfc856c](cfc856c)), closes [#3552](#3552)
* **gauge:** Intent to ship gauge.enforceMinMax ([c277201](c277201)), closes [#2125](#2125)
* **gauge:** Intent to ship gauge.label.ratio ([d4e49ba](d4e49ba)), closes [#3633](#3633)
* **legend:** Itent to ship legend.format, legend.tooltip ([aecff2f](aecff2f)), closes [#3533](#3533)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants