@toast-ui/chart
Advanced tools
Comparing version 4.3.1 to 4.3.2
@@ -30,6 +30,5 @@ import Component from "./component"; | ||
const { x, y, height: h, width: w } = this.rect; | ||
['#fff', this.chartBackgroundColor].forEach((color) => { | ||
ctx.fillStyle = color; | ||
ctx.fillRect(x, y, w, h); | ||
}); | ||
ctx.clearRect(x, y, w, h); | ||
ctx.fillStyle = this.chartBackgroundColor; | ||
ctx.fillRect(x, y, w, h); | ||
return canvas; | ||
@@ -36,0 +35,0 @@ }; |
@@ -167,3 +167,3 @@ import { isString, isUndefined, isNumber, includes, isNull, range, getFirstValidValue, } from "./utils"; | ||
const result = series[type].data.map(({ name, data }) => { | ||
const values = Array.isArray(getFirstValidValue(data)) && includes(['line', 'area', 'scatter'], type) | ||
const values = !isNumber(getFirstValidValue(data)) && includes(['line', 'area', 'scatter'], type) | ||
? makeCoordinateExportDataValues(type, categories, data) | ||
@@ -170,0 +170,0 @@ : data.map((value) => (Array.isArray(value) ? value.join() : value)); |
@@ -19,3 +19,2 @@ import { message } from "./message"; | ||
this.canvas = canvas; | ||
canvas.style.backgroundColor = '#fff'; | ||
this.chart.el.appendChild(canvas); | ||
@@ -79,3 +78,3 @@ canvas.addEventListener('click', this.chart); | ||
this.ctx.clearRect(0, 0, this.width, this.height); | ||
this.ctx.fillStyle = '#fff'; | ||
this.ctx.fillStyle = 'transparent'; | ||
this.ctx.fillRect(0, 0, this.width, this.height); | ||
@@ -82,0 +81,0 @@ } |
{ | ||
"name": "@toast-ui/chart", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "TOAST UI Application: Chart", | ||
@@ -143,3 +143,4 @@ "main": "dist/toastui-chart.js", | ||
"webpack-merge": "^5.3.0" | ||
} | ||
}, | ||
"gitHead": "9ecf713d9cbd93d21c8875fa55b40d5ebe1ff944" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3647648
284
2545
66662