The problem is that you have your data and interval columns backwards - the 
data column has to come immediately before the interval columns.  Switch 
those around and it should work.

Also, you should input all your numbers as numbers, not strings, as 
inputting them as strings can cause problems in some visualizations.

On Friday, May 31, 2013 9:15:23 AM UTC-4, A. Farber wrote:
>
> Hello,
>
> I am trying to add min and max limits to a Google chart, which I generate 
> using a Perl script from CSV data - by using the interval 
> role<https://developers.google.com/chart/interactive/docs/roles>for these 2 
> values.
>
> Unfortunately the I-lines are not displayed at my line chart, even though 
> I've set the min and max limits to the -100 and 100 for the sake of testing.
>
> Only the main data is being displayed:
>
>
> <https://lh6.googleusercontent.com/-dyan_h4Ftl4/UaihuHMtLnI/AAAAAAAAC98/gZMSzo6OwCU/s1600/interval.png>
>
>
> Can anybody please spot the error, what is wrong with my very simple test 
> case?
>
>         var data = {"L_B8_ACLR_50_0_QPSK_1_H":{"rows":[
>             
> {"c":[{"v":"UTRA_1_DOWN"},{"v":-100},{"v":100},{"v":"-42.46912"}]},
>             
> {"c":[{"v":"E-UTRA_1_DOWN"},{"v":-100},{"v":100},{"v":"-39.9545"}]},
>             
> {"c":[{"v":"E-UTRA_1_UP"},{"v":-100},{"v":100},{"v":"-48.68408"}]},
>             {"c":[{"v":"UTRA_1_UP"},{"v":-100},{"v":100},{"v":"-49.45148"}]},
>             {"c":[{"v":"UTRA_2_UP"},{"v":-100},{"v":100},{"v":"-58.96674"}]}],
>
>             "cols":[
>             {"p":{"role":"domain"},"label":"MEASUREMENT","type":"string"},
>             {"p":{"role":"interval"},"label":"LSL","type":"number"},
>             {"p":{"role":"interval"},"label":"USL","type":"number"},
>             {"p":{"role":"data"},"label":"1142926087","type":"number"}]}};
>
>         function drawCharts() {
>                 for (var csv in data) {
>                         var x = new google.visualization.DataTable(data[csv]);
>
>                         var options = {
>                                 title: csv,
>                                 width: 800,
>                                 height: 600
>                         };
>
>                         var chart = new 
> google.visualization.LineChart(document.getElementById(csv));
>                         chart.draw(x, options);
>                 }
>         }
>
>         $(function() {
>                 google.setOnLoadCallback(drawCharts);
>         });
>
> You can view the full code at 
>
> http://stackoverflow.com/questions/16857910/interval-role-i-lines-are-not-displayed-in-google-line-chart
>
> Thank you for any hints
> Alex
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to