2
내 angular2 앱에서 ZingChart를 사용하고 있습니다. 선 그래프의 눈금 x도 업데이트하려고합니다. 하지만 대한 API를 찾을 수 없습니다 : 여기ZingChart 라인 업데이트 눈금 x Angular2
export class App {
charts : Chart[];
@ViewChild(ZingChart)
chart: ZingChart;
constructor() {
this.name = 'Angular2'
this.charts = [{
id : 'chart-1',
data : {
type : 'line',
series : [{
values :[2,3,4,5,3,3,2]
}],
},
height : 400,
width : 600
}]
}
update(){
this.charts[0].data.series[0].values = [1,2,3,4,5,6];
//this.charts[0].data.x.value=[1,2,3,4,5,6]; ???
this.chart.update();
}
}
그래서 당신이 찾고있는 규모-X values
또는 labels
인 plunkr
입니다 here.
옵션입니다 알고 있어야한다? 숫자 대신 텍스트를 표시 하시겠습니까? 축 레이블을 변경 하시겠습니까? – nardecky
@nardecky 지난 12 시간 동안 갖고 싶습니다. 그래서 지금 그것은 3 척도 x가 [3,4,5,6,7,8,9,10,11,12,13,14]이어야하고 그것이 4 일 때 4에서 시작해야합니다. [4,5 , 6,7,8,9,10,11,12,13,14,15] – Noa