如何修复剑道图中的重叠音符?

时间:2014-05-06 15:12:01

标签: kendo-ui kendo-datasource kendo-chart

我有几个系列,其中的音符重叠如下:http://trykendoui.telerik.com/oVen

我试图改变音符的位置,但它并不总是有效 如果有任何方法可以自动或手动分离它们?请帮忙

1 个答案:

答案 0 :(得分:-1)

尝试以下链接,根据point.value改变位置: 请根据系列音符的位置参考该功能:

series: [{
                .........
                .........
                .........
                  notes: {
                      label: {
                          position: "outside",
                          format: "n2",
                          background: "rgb(35, 47, 87)",
                          color: "white",
                      },
                        position: function(point) {
                        var result = "bottom";
                        if (point.value % 2 === 0 || point.value < 5) {
                            result = "top";
                        }

                        return result;
                    }
               }

            }],

Updated Code Link