简体   繁体   English

在剑道折线图上绘制箱形图的点

[英]Plots points for a box chart on a kendo line chart

I'm trying to draw a square on a kendo line chart with the jQuery syntax. 我正在尝试使用jQuery语法在剑道折线图上绘制一个正方形。 I thought I should be able to pass it an array of x,y points and have them join up by setting the chart up as line chart, but that doesn't work. 我以为我应该可以将x,y点的数组传递给它,并通过将图表设置为折线图将它们连接起来,但这是行不通的。 The scatter chart takes an array of x,y point and allows me to plot the points of the corners of the squares, but if I change the chart type with the same data to "line" the points are now plotted at different y values on the same x value (ie in a vertical line which is completely wrong). 散点图采用x,y点的数组,并允许我绘制正方形角的点,但是如果我将具有相同数据的图表类型更改为“线”,则现在将点绘制在不同的y值上相同的x值(即完全错误的垂直线)。

Is it possible to plot a box chart with a kendo chart? 是否可以用剑道图绘制箱形图?

(I am using C# MVC4, not that that makes a difference) (我使用的是C#MVC4,并不是那么重要)

The line series are categorical, ie the points are always plotted in-order. 线系列是分类的,即,点始终按顺序绘制。 As you've noted, the scatterLine variety is an XY-chart and allows plotting arbitrary shapes. 正如您已经注意到的,scatterLine品种是XY图表,可以绘制任意形状。

Combining XY and categorical charts is not supported. 不支持将XY和分类图组合。 If this is what you're trying to achieve, then try converting the line series to scatterLine by adding an implicit X value. 如果这是您要实现的目标,请尝试通过添加隐式X值将线系列转换为scatterLine。

Please, feel free to make suggestions for built-in features at the Kendo UI UserVoice portal 请随时在Kendo UI UserVoice门户上对内置功能提出建议

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM