Welcome Guest Search | Active Topics |

Possible to have threshold line on column chart?
GregFoss
#1 Posted : Thursday, September 5, 2013 2:11:37 PM(UTC)
Rank: Member

Groups: jQueryChart, Registered
Joined: 6/7/2012(UTC)
Posts: 16

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hello,
Is it possible to have a line on the column chart like on the scatter chart? Such as a threshold value? Below is what I do for the scatter, but it does not have the same effect with the column...
.......
var alert =0.0000000000000000E+00;
var action =5.0000000000000000E+01;
$(document).ready(function () {
$('#scatter01').jqChart({
title: { text:'Yeast and Mold Count For Material ENV_AIR_PLY'},
axes: [
{
title:'CF5',
type:'linear',
maximum:'55 ',
minimum:'-1',
location:'left',
plotLines: [
{
lineWidth : 3,
strokeStyle :'orange',
value : alert,
title: { text:'Alert Limit:0.0000000000000000E+00',fillStyle :'orange',hAlign:'right'}
}
,
{
lineWidth : 3,
strokeStyle :'red',
value : action,
title: { text:'Action Limit:5.0000000000000000E+01',fillStyle :'red',hAlign:'right'}
}
]
}
....etc.
Dragan
#2 Posted : Friday, September 6, 2013 6:31:19 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 PlotLines do not depend on the type of the chart. Can you provide me your full code, so we can investigate it?
Best Regards,
Dragan Matek
jqChart Inc.
GregFoss
#3 Posted : Friday, September 6, 2013 10:28:09 AM(UTC)
Rank: Member

Groups: jQueryChart, Registered
Joined: 6/7/2012(UTC)
Posts: 16

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Thanks Dragan...here it is.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=windows1252"> <title>Water & Air Testing</title>

<link rel="stylesheet" type="text/css" href="http://devisrv.internal.upsher-smith.com:8001/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjqchartcss" />
<link rel="stylesheet" type="text/css" href="http://devisrv.internal.upsher-smith.com:8001/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjqRangeSelector" />
<script src="http://devisrv.internal.upsher-smith.com:8001/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjquery_min" type="text/javascript"></script>
<script src="http://devisrv.internal.upsher-smith.com:8001/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjqchartscatter" type="text/javascript"></script>
<script src="http://devisrv.internal.upsher-smith.com:8001/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjqrangeselectorjs" type="text/javascript"></script>
<!--[if IE]><script type="text/javascript" src="http://devisrv.internal.upsher-smith.com:8001/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zexcanvas"></script><![endif]-->
<script lang="javascript" type="text/javascript">
var tab1 =[['2138-A1',10],['2138-S1',12],['2139-A1',5],['2139-S1',2],['3119-A1',1],['3119-A2',3],['3119-S1',25],['3121-A1',12],['3121-A2',6],['3121-S1',15]];
var alert = 300.00;
var action = 400.00;
$(document).ready(function () {
$('#scatter01').jqChart({
title: { text:'Total Plate Count For Material ENV_AIR_DEN'},
axes: [
{
title:'colony forming units',
type:'linear',
location:'left',
plotLines: [
{
lineWidth : 3,
strokeStyle :'orange',
value : alert,
title: { text:'Alert Limit',fillStyle :'orange',hAlign:'right'}
}
,
{
lineWidth : 3,
strokeStyle :'red',
value : action,
title: { text:'Action Limit',fillStyle :'red',hAlign:'right'}
}
]
}
],
series: [
{
title:'Period: 006 Year: 2013',
type:'column',
strokeStyle:'black',lineWidth: 1,
pointWidth: 0.1,
markers: { size: 10, type:'circle',
strokeStyle:'black', lineWidth: 1 },
labels: { stringFormat:'%d',font:'12px sans-serif'},
data: tab1
}
]
});
});
</script></head>
<body>
<h1></h1>
<h3></h3>
<h5 style="color:red;"></h5>
<div id="scatter01" style="height: 500px;"></div>
<textarea rows="5" cols="75"></textarea></body>
</html>
Dragan
#4 Posted : Tuesday, September 10, 2013 5:26:36 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,

I'm not sure what is the issue. We're testing your code here and it seems ok. Which version of jqChart are you using? Can you send me a screenshot, so we can see what is not correct in your sample?
Best Regards,
Dragan Matek
jqChart Inc.
GregFoss
#5 Posted : Friday, September 13, 2013 3:43:11 PM(UTC)
Rank: Member

Groups: jQueryChart, Registered
Joined: 6/7/2012(UTC)
Posts: 16

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hey Dragan...thanks for looking at it. I do not know my jqchart version, I didn't do a good job documenting it. It has been about a year since I downloaded though. My license has expired, do I need a new one to download the latest version? What is that cost again?

Greg
Dragan
#6 Posted : Monday, September 16, 2013 8:01:26 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)
If you want to download the latest version of jqChart you need to renew your license. The renewal price for “jqChart Plugin for jQuery Developer License with Subscription and Priority Support” is $199.00.

You can also send us a sample ( support@jqchart.com ) with the version you have, so we can check if there are any differences.
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest (4)
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.151 seconds.