我正在使用持续时间轴@ amcharts 3 。我已将单位设为“ mm”,它适用于23小时(即1380分钟)以下的值,但是如果该值超过23小时-它会以 undefined 标签开头。
我尝试使用以下配置将其显示为 Day :
AmCharts.makeChart("chartdiv", {
"backgroundColor": 'blue',
"theme": "light",
"type": "serial",
"zoomOutText": '',
"color": "black",
"dataDateFormat": "HH:NN:SS",
"dataProvider": chartData,
"valueAxes": [{
"id": "v1",
"position": "left",
"title": "Time of the Day",
"type": "date",
"minimumDate": minDateStr,
"maximumDate": maxDateStr,
"markPeriodChange": false,
"autoGridCount": false,
"gridCount": 10,
"minPeriod": "ss",
}, {
"id": "v2",
"unitPosition": "left",
"position": "right",
"title": "Duration of the Execution",
//"maximum":1400,
"duration": "mm",
"durationUnits": {
"dd": "day",
"hh": "h ",
"mm": "min"
}
}
这对我不起作用。我是否缺少 duration 或 durationUnits 中的任何内容。任何建议将不胜感激!