Welcome Guest Search | Active Topics |

Y-Axis Custom Limits
GregFoss
#1 Posted : Thursday, June 7, 2012 9:21:01 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)
Hello,

Before I buy a developer license for the jqChart plugin for JQuery I need to make sure I can solve a couple issues I have not been able to figure out.

I created a simple category chart with batch material numbers and laboratory testing results. The chart adjusts the y-axis nicely according to the values entered. My values range from 98 to 99.9. However, my tolerance for the chart is 80 to 110...so my y-axis needs to have a range of 80 to 100. Can I manually set my y-axis range? Without it my results look like they have a lot of variation, which they do not.

Also, while printing the plot lines inexplicably move to the left. Not the whole chart, just the plot lines. Very odd...have you heard of this before? I'm using IE7 and have no alternative other than that. Believe me...I'm not too happy about it.

Below is my simple code built dynamically from SAP. It is not finished so I know my tabs are not yet filled...I just populate the first one now to see if this jqchart tool is going to work for me. No use putting too much into this if it's not the tool for me.

Thanks,
Greg

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Highcharts Example</title>

<link href="http://tstisrv.internal.upsher-smith.com:8080/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjquery_ui" rel="stylesheet" type="text/css"/>
<script src="http://tstisrv.internal.upsher-smith.com:8080/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjquery_min"></script>
<script src="http://tstisrv.internal.upsher-smith.com:8080/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjquery_ui_min"></script>
<link href="http://tstisrv.internal.upsher-smith.com:8080/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=ztablesorter" rel="stylesheet" type="text/css"/>
<script src="http://tstisrv.internal.upsher-smith.com:8080/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zjqchart" type="text/javascript"></script>
<!--[if IE]>
<script type="text/javascript" src="http://tstisrv.internal.upsher-smith.com:8080/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=zexcanvas"></script>
<![endif]-->
<script type="text/javascript" src="http://tstisrv.internal.upsher-smith.com:8080/sap/public/bsp/sap/public/bc/webrfc?_function=www_get_mime_object&_object_id=ZJQUERY_TABLESORTER"></script>
<script type="text/javascript">$(document).ready(function() { $("#TABLE1").tablesorter(); } );</script>
<script type="text/javascript">$(document).ready(function() { $("#TABLE2").tablesorter(); } );</script>
<script type="text/javascript">$(document).ready(function() { $("#TABLE3").tablesorter(); } );</script>
<script type="text/javascript">$(document).ready(function() { $("#TABLE4").tablesorter(); } );</script>
<script lang="javascript" type="text/javascript">
$(document).ready(function () {

$('#container1').jqChart({
width: 800,
height: window.innerHeight,
title: { text: ''},
tooltips: { type: 'shared' },
axes: [
{
type: 'category',
location: 'bottom',
title: 'Batch Number',
categories: ['267685', '269533', '270347', '271200', '275382', '272053', '276744', '276745', '278578' ]

}
],
series: [
{
type: 'spline',
title: 'Uniformity of Dosage Unit',
data: [99.0, 96.8, 97.7, 98.3, 98.3, 99.4, 99.7, 98.7, 98.8]
},
{
type: 'spline',
title: 'Uniformity of Dosage Unit',
data: [100.4, 98.5, 98.7, 99.1, 99.8, 100.2, 100.3, 99.7, 99.5]
}
]
});

// initialize tabs
$("#tabs").tabs();
});
</script>



</head>
<body>


<div id="tabs" >
<ul class="noprint">
<li><a href="#fragment-1"><span>01211-99-50</br>TABLET</br>WARFARIN SOD 1MG</span></a></li>
<li><a href="#fragment-2"><span>01212-99-50</br>TABLET</br>WARFARIN SOD 2MG</span></a></li>
<li><a href="#fragment-3"><span>01213-99-50</br>TABLET</br>WARFARIN SOD 2.5MG</span></a></li>
<li><a href="#fragment-4"><span>01216-99-50</br>TABLET</br>WARFARIN SOD 5MG</span></a></li>
<li><a href="#fragment-5"><span>01217-99-50</br>TABLET</br>WARFARIN SOD 6MG</span></a></li>
<li><a href="#fragment-6"><span>01214-99-50</br>TABLET</br>WARFARIN SOD 3MG</span></a></li>
<li><a href="#fragment-7"><span>01215-99-50</br>TABLET</br>WARFARIN SOD 4MG</span></a></li>
<li><a href="#fragment-8"><span>01218-99-50</br>TABLET</br>WARFARIN SOD 7.5MG</span></a></li>
<li><a href="#fragment-9"><span>01219-99-50</br>TABLET</br>WARFARIN SOD 10MG</span></a></li>
</ul>
<div id="fragment-1" >
<h2>01211-99-50 : TABLET, WARFARIN SOD 1MG</h2>
<h5>Uniformity of Dosage Units (Average)/Uniformity of Dosage Units (High)</h5>
<div id="container1" class="sz_cont"></div>


<div> <TABLE id="TABLE1" class="tablesorter" border='1'cellpadding='1'cellspacing='1'width='100%'>
<THEAD>
<TR><TH>Batch</TH>
<TH>Uniformity of Dosage Unit</TH>
<TH>Uniformity of Dosage Unit</TH>
<TH>Usage Decision</TH>
<TH>Mfg Date</TH>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>267685</TD>
<TD>99.0</TD>
<TD>100.4</TD>
<TD>Released</TD>
<TD>08/05/2009</TD>
</TR>
<TR>
<TD>269533</TD>
<TD>96.8</TD>
<TD>98.5</TD>
<TD>Released</TD>
<TD>07/25/2009</TD>
</TR>
<TR>
<TD>270347</TD>
<TD>97.7</TD>
<TD>98.7</TD>
<TD>Released</TD>
<TD>09/28/2009</TD>
</TR>
</TBODY>
</TABLE>
<TABLE id="TABLE2" class="tablesorter" border='1'cellpadding='1'cellspacing='1'width='100%'>
<THEAD>
<TR><TH>Individual Tests</TH>
<TH>Acceptance Criteria</TH>
<TH>Maximum</TH>
<TH>Minimum</TH>
<TH>Average</TH>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>Uniformity of Dosage Units (Average)</TD>
<TD>Tier 1: 95.0-105.0%<p/>NMT 3.0% RSD<p/>(n=10)<p/>Tier 2: 90.0-110.0%<p/>NMT 3.9% RSD<p/>(n=30)<p/></TD>
<TD>99.7</TD>
<TD>96.8</TD>
<TD>98.5</TD>
</TR>
<TR>
<TD>Uniformity of Dosage Units (High</TD>
<TD></TD>
<TD>100.4</TD>
<TD>98.5</TD>
<TD>99.6</TD>
</TR>
</TBODY>
</TABLE>
<TABLE id="TABLE3" class="tablesorter" border='1'cellpadding='1'cellspacing='1'width='100%'>
<THEAD>
<TR><TH>Batch No.</TH>
<TH>Type</TH>
<TH>Notification</TH>
<TH>Description</TH>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>272053</TD>
<TD>Exception</TD>
<TD>100000000784</TD>
<TD>Logbook not completed for Mixer</TD>
</TR>
<TR>
<TD>276744</TD>
<TD>Exception</TD>
<TD>100000000938</TD>
<TD>Compress product into fiber drums</TD>
</TR>
</TBODY>
</TABLE>
<TABLE id="TABLE4" class="tablesorter" border='1'cellpadding='1'cellspacing='1'width='100%'>
<THEAD>
<TR><TH>Date Type</TH>
<TH>Range</TH>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>Reporting Period</TD>
<TD>08 / 05 / 2009 To 07 / 14 / 2010</TD>
</TR>
<TR>
<TD>Charting Period</TD>
<TD>08 / 05 / 2009 To 07 / 14 / 2010</TD>
</TR>
</TBODY>
</TABLE>
</div>

</div>

<div id="fragment-2">
<div id="container2"></div>
<div id="table2-1">
<TABLE id="myTable" class="tablesorter" border='1'cellpadding='1'cellspacing='1'width='100%'>
<THEAD><TR><TH>Sold-To Customer</TH>
<TH>Customer Name</TH>
<TH>Ship-to City</TH>
<TH>State</TH>
<TH>Material Number</TH>
<TH>Description</TH>
<TH>Date From</TH>
<TH>Date To</TH>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>18784</TD>
<TD>MCKESSON DRUG COMPANY</TD>
<TD>WILSONVILLE</TD>
<TD>OR</TD>
<TD>0245-0272-06</TD>
<TD>Oxandrolone 10mg Tblt Btl</TD>
<TD>03/01/2009</TD>
<TD>03/01/2011</TD>
</TR>
</TBODY>
</TABLE>
</div>
<div id="table2-2">
<TABLE id="myTable" class="tablesorter" border='1'cellpadding='1'cellspacing='1'width='100%'>
<THEAD><TR><TH>Sold-To Customer</TH>
<TH>Customer Name</TH>
<TH>Ship-to City</TH>
<TH>State</TH>
<TH>Material Number</TH>
<TH>Description</TH>
<TH>Date From</TH>
<TH>Date To</TH>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>18784</TD>
<TD>MCKESSON DRUG COMPANY</TD>
<TD>WILSONVILLE</TD>
<TD>OR</TD>
<TD>0245-0272-06</TD>
<TD>Oxandrolone 10mg Tblt Btl</TD>
<TD>03/01/2009</TD>
<TD>03/01/2011</TD>
</TR>
</TBODY>
</TABLE>
</div>
</div>
</div>


</body>
</html>
Dragan
#2 Posted : Thursday, June 7, 2012 9:43:29 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 Greg,

You can set manually the y-axis range. You can use this code:

Code:
             $('#jqChart').jqChart({
                axes: [
                         {
                             type: 'linear',
                             location: 'left',
                             minimum: 80,
                             maximum: 110
                         }
                      ],…


You can look also at:

http://www.jqchart.com/samples/ChartAxes/LinearAxis
http://www.jqchart.com/documentation/userguide/default.aspx#!LinearAxis

Quote:
Also, while printing the plot lines inexplicably move to the left. Not the whole chart, just the plot lines. Very odd...have you heard of this before? I'm using IE7 and have no alternative other than that. Believe me...I'm not too happy about it.


I was able to reproduce this. This is a wired issue. Thank you for letting us know about this. We’ll investigate more closely and I’ll write here about it.
Best Regards,
Dragan Matek
jqChart Inc.
GregFoss
#3 Posted : Thursday, June 7, 2012 10:44:02 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 for the quick response. I did try what you suggested but couldn't get it to work...my misunderstanding was that this is in ADDITION to the category type. For further clarification and possibly for others....

I need type=category for my X axis and a predefined range on my y-axis. The code would be like this...
$('#jqChart').jqChart({
axes: [
{
type: 'linear',
location: 'left',
minimum: 80,
maximum: 110
},
{
type: 'category',
location: 'bottom',
title: 'Batch Number',
categories: ['267685', '269533', '270347', '271200', '275382', '272053', '276744', '276745', '278578' ]

}
],…

Thanks again,

I'll watch for the printing issue...
Greg
Dragan
#4 Posted : Friday, June 8, 2012 9:20:44 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)
I've sent you an email with a version, in which the printing issue is fixed. The official fix will be available in next version.

Best Regards,
Dragan Matek
jqChart Inc.
GregFoss
#5 Posted : Friday, June 8, 2012 9:56:03 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)
Thank You Dragan...It works great.

We will be making a purchase of this product, I have completed my testing and all my requirements are met. I'm grateful for your fix and your excellent customer service.

Greg
Users browsing this topic
Guest (6)
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.335 seconds.