1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

fix #1585 radial chart not working properly (#1751)

* fix #1585 radial chart not working properly

* Fix ruby version for test

* Make stroke color work for both dark and light
This commit is contained in:
Robert-Jan de Dreu
2023-10-20 17:50:35 +02:00
committed by GitHub
parent 13027f2050
commit f8f55f5f5c
4 changed files with 20 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ jobs:
- name: Set up Ruby - name: Set up Ruby
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: 2.6 ruby-version: 3.2
bundler-cache: true bundler-cache: true
- run: ruby --version - run: ruby --version

View File

@@ -201,6 +201,7 @@ tasks-overview:
campaigns: campaigns:
demo: true
type: radialBar type: radialBar
sparkline: true sparkline: true
series: series:
@@ -491,4 +492,3 @@ traffic-out:
- name: Outbound - name: Outbound
data: [-3, 7, 9, 14, 4, 5, 3, -1, 7, 10, 14, 14, -2, 6] data: [-3, 7, 9, 14, 4, 5, 3, -1, 7, 10, 14, 14, -2, 6]

View File

@@ -68,6 +68,22 @@
}, },
{% endif %} {% endif %}
{% if chart-type == 'radialBar' %}
plotOptions: {
radialBar: {
dataLabels: {
total: {
show: true,
label: 'Totals',
formatter: function (val) {
return "44%";
},
},
},
},
},
{% endif %}
{% if chart-type == 'bar' or chart-type == 'area' %} {% if chart-type == 'bar' or chart-type == 'area' %}
dataLabels: { dataLabels: {
enabled: {% if data.datalabels %}true{% else %}false{% endif %}, enabled: {% if data.datalabels %}true{% else %}false{% endif %},

View File

@@ -39,6 +39,6 @@
color: inherit !important; color: inherit !important;
} }
.apexcharts-radialbar-area { .apexcharts-radialbar-track .apexcharts-radialbar-area {
stroke: var(--#{$prefix}border-color-dark) !important; stroke: var(--#{$prefix}border-color) !important;
} }