λΉ μν μ°¨νΈλ μ€λ₯ μμ΄ λ λλ§λ©λλ€.
μ€λ₯κ° λνλ©λλ€.
ReferenceError: Highcharts is not defined
https://github.com/highcharts/highcharts/blob/decfc3ab47ec88e28472f065fd2454b46c9f1fd1/js/parts/PieSeries.js#L789
https://codesandbox.io/s/highcharts-vue-demo-ye65e
8.1.1
λͺ¨λ
λΉμ΄ μλ μν λ‘
μλ
νμΈμ @pablolmedorado λ° @clemeno
λ¬Έμ λ₯Ό μ κ³ ν΄ μ£Όμ
μ κ°μ¬ν©λλ€!
λ¬Έμ λ μ΅μ λ²μ μλ§ μκ³ λͺ¨λ λνΌμ κ΄λ ¨λ κ² κ°μ΅λλ€. μ€μ λ‘λ master
λΈλμΉμμ μ΄λ―Έ μμ λμμ§λ§ master
μ μ΅μ λΉλλ₯Ό μ½λμλλ°μ€ μμ μ λ£κ³ Highcharts λ²μ μ κ΅μ²΄ν ν λ¬Έμ κ° μ¬λΌμ§ κ²μ²λΌ 보μ΄κΈ° λλ¬Έμ
λλ€.
μμ½νμλ©΄, μ°λ¦¬λ 곧 μ λ²μ μ μΆμν΄μΌ νλ©° μ΄ λ¬Έμ λ μλμΌλ‘ ν΄κ²°λ©λλ€.
λΌμ΄λΈ μμ: https://codesandbox.io/s/highcharts-vue-demo-61e0v
κ°μ¬ν©λλ€!
μ΄ λ¬Έμ λ μ μ΄λ npmμ κ²μλ λ²μ 8.1.2μμ μ¬μ ν μ‘΄μ¬νλ κ²μΌλ‘ 보μ λλ€.
λ¬Έμ λ₯Ό λ€μ μ½λλ€.
@bre1470 - νμΈν΄ Highcharts
λ€μμ€νμ΄μ€λ λͺ¨λλΏλ§ μλλΌ μ½μ΄μμλ μ¬μ©λλ κ² κ°μ΅λλ€. λ°λͺ¨: https://codesandbox.io/s/highcharts-vue-demo-5o9qu?file=/package.json
μ΄κ²μ΄ 8.1.2μμλ μ¬μ ν λ¬Έμ μΈμ§ νμΈνμμμ€.
https://stackblitz.com/edit/angular-ivy-udtk3a?file=package.json
λ κ°μ§ μλ리μ€μμ μ¬νλ©λλ€.
μμ μ¬νμ΄ λμ¬ λκΉμ§ ν΄κ²° λ°©λ²μ΄ κΆκΈν©λλ€. @pawelfus μ repro λ§ν¬λ₯Ό μ¬μ©νκ³ highcharts λ²μ μ 8.1.0 _appears_λ‘ μμ νμ¬ μ΄ λ¬Έμ λ₯Ό ν΄κ²°νμΈμ. μ΄κ²μ΄ νμ¬ μ μλ ν΄κ²° λ°©λ²μ λκΉ?
μμ μ¬νμ΄ λμ¬ λκΉμ§ ν΄κ²° λ°©λ²μ΄ κΆκΈν©λλ€. @pawelfus μ repro λ§ν¬λ₯Ό μ¬μ©νκ³ highcharts λ²μ μ 8.1.0 _appears_λ‘ μμ νμ¬ μ΄ λ¬Έμ λ₯Ό ν΄κ²°νμΈμ. μ΄κ²μ΄ νμ¬ μ μλ ν΄κ²° λ°©λ²μ λκΉ?
μ°λ¦¬μ κ²½μ° λ°μ΄ν° μμ΄ μ°¨νΈλ₯Ό λ§λ λ€μ λμ€μ λ°μ΄ν°λ₯Ό μΆκ°νμ¬ λ¬Έμ κ° λ°μνμ΅λλ€. κ·Έκ²μ΄ μΌμ΄λ¬μ λ, μ°λ¦¬λ κ·Έ μμ μ μ΄λ―Έ λ°μ΄ν°λ₯Ό κ°μ§κ³ μμκ³ , λ°λΌμ λ°μ΄ν°λ‘ μ°¨νΈλ₯Ό μμ±ν μ μμκ³ , λ°λΌμ λ¬Έμ λ₯Ό νΌν μ μμμ΅λλ€. κ·Έκ²μ΄ λΉμ μμν μ΅μ μ΄λΌλ©΄ μ΄ν΄λ³Ό κ°μΉκ° μμ΅λλ€.
@kennyjwilli 8.1.0 μ΄ν λ³κ²½ μ¬νμ΄ μμΌλ©΄ νμ©νλ €λ κ²½μ° drawEmpty
λ©μλλ₯Ό λ€μκ³Ό κ°μ΄ λνν μλ μμ΅λλ€.
// Workaround for https://github.com/highcharts/highcharts/issues/13710
(function(H) {
H.seriesTypes.pie.prototype.drawEmpty = function() {
var centerX,
centerY,
start = this.startAngleRad,
end = this.endAngleRad,
options = this.options;
// Draw auxiliary graph if there're no visible points.
if (this.total === 0) {
centerX = this.center[0];
centerY = this.center[1];
if (!this.graph) {
this.graph = this.chart.renderer
.arc(centerX, centerY, this.center[1] / 2, 0, start, end)
.addClass("highcharts-empty-series")
.add(this.group);
}
this.graph.attr({
d: H.SVGRenderer.prototype.symbols.arc(
centerX,
centerY,
this.center[2] / 2,
0,
{
start: start,
end: end,
innerR: this.center[3] / 2
}
)
});
if (!this.chart.styledMode) {
this.graph.attr({
"stroke-width": options.borderWidth,
fill: options.fillColor || "none",
stroke: options.color || "#cccccc"
});
}
} else if (this.graph) {
// Destroy the graph object.
this.graph = this.graph.destroy();
}
}
})(Highcharts);
codesandbox.ioμ μμ μμ
κ·Έλ μ§ μμΌλ©΄ μ§κΈμ 8.1.0μ μ¬μ©νλ κ²μ΄ μ’μ΅λλ€.
μμ #13770μ΄ #13722λ₯Ό μ²λ¦¬νμ§ μλ κ² κ°μ΅λλ€.
#13722μμ λ¬Έμ λ₯Ό μ¬ννλ λ°λͺ¨λ₯Ό μ 곡νμ΅λλ€.
λ€μ μ€μ μ΄ λ¬Έμ μ μμΈμ
λλ€.
https://github.com/highcharts/highcharts/blob/c7e1976467a3b0e1620d44a414af2470716732b9/js/parts/ColumnSeries.js#L571
μ΄κ²μ 2.7.0μμ μ¬μ ν λμκ² μΌμ΄λκ³ μμ΅λλ€.
μλ νμΈμ @Crocsx - μ΄ μμ μ¬νμ 릴리μ€λμ§ μμμ΅λλ€. λ€μ 릴리μ€λ λ€μ λ¬λ‘ μμ λμ΄ μμ΅λλ€. μ§κΈμ μ¬κΈ°μ κ²μλ μμ μ λ€μ΄κ·Έλ μ΄λνκ±°λ μ¬μ©ν΄μΌ ν©λλ€. https://github.com/highcharts/highcharts/issues/13710#issuecomment -650014654
μΆμ : νμ¬ Highcharts λ²μ μ v8.1.2μ λλ€.
μ λ§μμ μ£μ‘ν©λλ€. highchart-angular μ λ°μ΄νΈμ νΌλνμ΅λλ€. μ΄ highchartκ° μ¬μ ν 8.1.2μ μλ κ²μ λ³΄μ§ λͺ»νμ΅λλ€. μ£μ‘ν©λλ€.
μλ νμΈμ @Crocsx - μ΄ μμ μ¬νμ 릴리μ€λμ§ μμμ΅λλ€. λ€μ 릴리μ€λ λ€μ λ¬λ‘ μμ λμ΄ μμ΅λλ€. μ§κΈμ λ€μ΄κ·Έλ μ΄λνκ±°λ μ¬κΈ°μ κ²μλ workaorundλ₯Ό μ¬μ©ν΄μΌ ν©λλ€. #13710(λκΈ)
μΆμ : νμ¬ Highcharts λ²μ μ v8.1.2μ λλ€.
@pawelfus λ€μ λ¦΄λ¦¬μ€ λ μ§κ° μμ΅λκΉ?
μ°λ¦¬λ λ€μ μ£Ό @felipemfpλ₯Ό λͺ©νλ‘ ν©λλ€.
λΉμ·ν λ¬Έμ κ° λ°μνμ΅λλ€. λ²λ‘λ₯Ό ν΄λ¦νλ©΄ λ€λ₯Έ λ°μ΄ν°λ 0μ
λλ€.κ°μ¬ν©λλ€!
"νμ΄μ°¨νΈ": "^8.2.0",
μλ νμΈμ @the-gc - v8.2.0μμ λ¬Έμ λ₯Ό μ¬νν μ μμ΅λλ€. μ΄ν΄λ³΄μΈμ: https://jsfiddle.net/BlackLabel/ncpL97eq/ - λ΄ λ°λͺ¨λ₯Ό μ λ°μ΄νΈν μ μμ΅λκΉ? κ°μ¬ ν΄μ!
highcharts 8.2.0μΌλ‘ μ λ°μ΄νΈνμ¬ λ¬Έμ κ° ν΄κ²°λμμμ νμΈν μ μμ΅λλ€.
κ°μ¬ ν΄μ!
μ¬κΈ°μμλ λ§μ°¬κ°μ§λ‘ μ μλν©λλ€.
μλ νμΈμ @pawelfus - μ€λ νλ‘μ νΈκ° μ¬κ΅¬μΆλμκ³ λ¬Έμ κ° ν΄κ²°λμμ΅λλ€. λλ¨ν κ°μ¬ν©λλ€!
νμΈν΄μ£Όμ μ κ°μ¬ν©λλ€!
λ΄ yarn.lock
νμΌμ μ¬λ¬ λ²μ μ νμ΄μ°¨νΈκ° μμκΈ° λλ¬Έμ μ΄λ° μΌμ΄ λμκ²λ μΌμ΄λ¬μ΅λλ€. 8.2.0μμ ν΅ν©λλ©΄ μΆ©λμ΄ μ¬λΌμ‘μ΅λλ€.
κ°μ₯ μ μ©ν λκΈ
μ΄κ²μ΄ 8.1.2μμλ μ¬μ ν λ¬Έμ μΈμ§ νμΈνμμμ€.
https://stackblitz.com/edit/angular-ivy-udtk3a?file=package.json