mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
* 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:
committed by
GitHub
parent
13027f2050
commit
f8f55f5f5c
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.6
|
||||
ruby-version: 3.2
|
||||
bundler-cache: true
|
||||
|
||||
- run: ruby --version
|
||||
|
||||
@@ -201,6 +201,7 @@ tasks-overview:
|
||||
|
||||
|
||||
campaigns:
|
||||
demo: true
|
||||
type: radialBar
|
||||
sparkline: true
|
||||
series:
|
||||
@@ -491,4 +492,3 @@ traffic-out:
|
||||
- name: Outbound
|
||||
data: [-3, 7, 9, 14, 4, 5, 3, -1, 7, 10, 14, 14, -2, 6]
|
||||
|
||||
|
||||
|
||||
@@ -68,6 +68,22 @@
|
||||
},
|
||||
{% 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' %}
|
||||
dataLabels: {
|
||||
enabled: {% if data.datalabels %}true{% else %}false{% endif %},
|
||||
|
||||
4
src/scss/vendor/_apexcharts.scss
vendored
4
src/scss/vendor/_apexcharts.scss
vendored
@@ -39,6 +39,6 @@
|
||||
color: inherit !important;
|
||||
}
|
||||
|
||||
.apexcharts-radialbar-area {
|
||||
stroke: var(--#{$prefix}border-color-dark) !important;
|
||||
.apexcharts-radialbar-track .apexcharts-radialbar-area {
|
||||
stroke: var(--#{$prefix}border-color) !important;
|
||||
}
|
||||
Reference in New Issue
Block a user