amcharts持续时间轴值以天为单位显示

时间:2019-04-05 14:49:52

标签: javascript html amcharts duration

我正在使用持续时间轴@ 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 中的任何内容。任何建议将不胜感激!

It breaks in the Duration Axis

0 个答案:

没有答案