Welcome Guest Search | Active Topics |

Error bars with individual value per data point
NTT
#1 Posted : Friday, January 13, 2017 5:50:17 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/15/2016(UTC)
Posts: 8

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

I need to create a bar, line or scatter plot where the data points have individual error values. Is this possible? I tried something like below, but this obviously did not work since the value in the errorBars only takes a number but not an array.

Thanks
Martin


$(this.elt.nativeElement).jqChart({
title: { text: 'Error Bars' },
animation: { duration: 1 },
shadows: {
enabled: true
},
series: [
{
type: 'column',
title: 'Series 1',
fillStyle: '#418CF0',
data: [['A', 33], ['B', 57], ['C', 33],
['D', 12], ['E', 35], ['F', 7], ['G', 24]],

errorBars: {
calculationType: 'fixedValue', // 'standardError', 'standardDeviation', 'percentage' or 'fixedValue'
displayType: 'both', // 'both', 'upper' or 'lower'
strokeStyle: 'black',
lineWidth: 2,
capLength: 10,
value: [10, 5, 1, 20, 2, 4]
}
}
]
});
Dragan
#2 Posted : Friday, January 13, 2017 6:28:04 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

The error bars don't support individual values. You can probably create multiple series, with 1 data point each, so you can set individual error value per each data point. In that case you need to use numeric x-values.
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
NTT on 1/13/2017(UTC)
NTT
#3 Posted : Friday, January 13, 2017 8:28:43 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/15/2016(UTC)
Posts: 8

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

thanks for the quick response and your suggestion! Unfortunately, I need this also for non-numeric x-axis values.

Is there a chance this might be implemented in a future release?

Cheers
Martin
Dragan
#4 Posted : Tuesday, January 17, 2017 6:30:54 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

We'll add this functionality in the next release, but we don't have specific time frame for it.
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.085 seconds.