From 75a78b0187f690327de5382d0445f7ab7973090d Mon Sep 17 00:00:00 2001 From: chomik Date: Mon, 17 Jun 2019 21:22:46 +0200 Subject: [PATCH] small charts fixes --- js/app/charts.js | 7 +++++++ pages/_data/charts.yml | 1 + pages/_includes/js/charts.html | 13 ++++++++++--- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/js/app/charts.js b/js/app/charts.js index 626dabd08..b0428772a 100644 --- a/js/app/charts.js +++ b/js/app/charts.js @@ -85,6 +85,7 @@ if (window.Apex) { plotOptions: { pie: { + customScale: 1, expandOnClick: false, dataLabels: { offset: -8, @@ -96,6 +97,7 @@ if (window.Apex) { stroke: { width: 2, curve: 'smooth', + lineCap: "round", }, fill: { @@ -126,11 +128,16 @@ if (window.Apex) { }, title: { + margin: 0, style: { fontSize: '14px', } }, + subtitle: { + margin: 0, + }, + tooltip: { fillSeriesColor: false }, diff --git a/pages/_data/charts.yml b/pages/_data/charts.yml index 480ef7401..adba95c84 100644 --- a/pages/_data/charts.yml +++ b/pages/_data/charts.yml @@ -235,6 +235,7 @@ pie: type: pie hide-legend: true show-data-labels: true + sparkline: true series: - name: A color: blue-darker diff --git a/pages/_includes/js/charts.html b/pages/_includes/js/charts.html index 05937a4a4..796068eb3 100644 --- a/pages/_includes/js/charts.html +++ b/pages/_includes/js/charts.html @@ -5,11 +5,12 @@