tuimon 0.3.33 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -104,10 +104,10 @@ export function generateJs(layout, t) {
|
|
|
104
104
|
options: {
|
|
105
105
|
responsive: true, maintainAspectRatio: false, animation: false,
|
|
106
106
|
scales: {
|
|
107
|
-
y: { grid: { color: theme.border + '22' }, ticks: { color: theme.
|
|
107
|
+
y: { grid: { color: theme.border + '22' }, ticks: { color: theme.text, font: { size: 12 } } },
|
|
108
108
|
x: { display: false },
|
|
109
109
|
},
|
|
110
|
-
plugins: { legend: { labels: { color: theme.text, font: { size:
|
|
110
|
+
plugins: { legend: { labels: { color: theme.text, font: { size: 12 } } } },
|
|
111
111
|
},
|
|
112
112
|
});
|
|
113
113
|
return charts[id];
|
|
@@ -158,7 +158,7 @@ export function generateJs(layout, t) {
|
|
|
158
158
|
data: { labels: [], datasets: [{ data: [], backgroundColor: [], borderWidth: 0 }] },
|
|
159
159
|
options: {
|
|
160
160
|
responsive: true, maintainAspectRatio: false, animation: false, cutout: '60%',
|
|
161
|
-
plugins: { legend: { position: 'bottom', labels: { color: theme.text, font: { size:
|
|
161
|
+
plugins: { legend: { position: 'bottom', labels: { color: theme.text, font: { size: 12 }, padding: 12,
|
|
162
162
|
generateLabels: function(chart) {
|
|
163
163
|
var data = chart.data;
|
|
164
164
|
return (data.labels || []).map(function(label, i) {
|
|
@@ -193,8 +193,8 @@ export function generateJs(layout, t) {
|
|
|
193
193
|
options: {
|
|
194
194
|
responsive: true, maintainAspectRatio: false, animation: false,
|
|
195
195
|
scales: {
|
|
196
|
-
y: { grid: { color: theme.border + '22' }, ticks: { color: theme.
|
|
197
|
-
x: { ticks: { color: theme.
|
|
196
|
+
y: { grid: { color: theme.border + '22' }, ticks: { color: theme.text, font: { size: 12 } } },
|
|
197
|
+
x: { ticks: { color: theme.text, font: { size: 12 } } },
|
|
198
198
|
},
|
|
199
199
|
plugins: { legend: { display: false } },
|
|
200
200
|
},
|
package/dist/layout/theme.js
CHANGED