This is a migrated thread and some comments may be shown as answers.

Display outliers in chart or sparkline?

3 Answers 57 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Vaughn Myers
Top achievements
Rank 1
Vaughn Myers asked on 02 Aug 2013, 09:21 PM
I have data that looks like this: [99.44], [99.52], [99.61], [8.52], [99.54], [99.61], [99.53], [99.64], [99.64].

As you can see, the 8.52 is the outlier. The difference between the 8.52 and the rest of the data is so huge that the differences between the data is not noticeable.

Is there a way for me to display an outlier in another color or below the horizontal axis?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 06 Aug 2013, 03:36 PM
Hello Vaughn,

You could display the outlier below the categoryAxis as specifying the valueAxis.axisCrossingValue. For example: 
$("#press-log").kendoSparkline({
  //....
  valueAxis: {
    visible: true,
    axisCrossingValue: 90
  }
});


Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Vaughn Myers
Top achievements
Rank 1
answered on 06 Aug 2013, 07:04 PM
Thanks for the reply.
Is it possible to also change the color of those values? In other words, they'll be below the categoryAxis and with another color.
0
Iliana Dyankova
Telerik team
answered on 08 Aug 2013, 06:16 PM
Hi Vaughn,

You could change the color via series.color option. For example: 

$("#press-log").kendoSparkline({
  //....
  data: [
        936, 968, 1025, 999, 998, 1014, 1017, 1010, 1010, 1007,
        1004, 988, {value: 8, color: "green"}, 988, 987
   ],
});
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Vaughn Myers
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Vaughn Myers
Top achievements
Rank 1
Share this question
or