1
JavaScript 내에 월 배열 배열이 있습니다.Javascript 메서드를 반복하고 메서드에 데이터를 추가하십시오.
var myarray = new Array();
myarray2.push("January");
myarray2.push("February");
myarray2.push("March");
myarray2.push("April");
myarray2.push("May");
myarray2.push("Jun");
myarray2.push("Jul");
myarray2.push("Aug");
myarray2.push("Sept");
myarray2.push("Oct");
어떻게하면이 배열을 반복하고 addAxis 메서드를 추가 할 수 있습니까 ??
현재 표시된대로 정적으로 추가했지만 어떻게 동적으로 추가 할 수 있습니까 ??
chart1.addAxis("x", {
fixLower: "none",
fixUpper: "none",
natural: true,
majorTick: { length: 3 },
labels: [
{value: 1, text: "January"},
{value: 2, text: "February"},
{value: 3, text: "March"},
{value: 4, text: "April"},
{value: 5, text: "May"},
{value: 6, text: "Jun"},
{value: 7, text: "Jul"},
{value: 8, text: "Aug"},
{value: 9, text: "Sept"},
{value: 10, text: "Oct"}
]
});