× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2010-05-07T22:48:20Z  · last modified 2010-05-26T18:26:46Z

NPE AQChart chart.properties.setChartType()


Dev mattbrumley(*)
QA
Niels Gron
NielsGron
Priority Low
Complexity Trivial
Component Open API - General
Version 09.0

In the below script if i use

chart.properties.setChartType(9); 0r chart.properties.setChartType(10); or chart.properties.setChartType(11);

ChartType from 1-9 works

9,10,11 doesnt work

then starting from 12 till 19 works

20,22,23,23

 

Script error: Wrapped javax.media.opengl.GLException: java.lang.NullPointerException (#30)

 

// Returns a singleton object which provides an entry point for version control functionality.
var cht = aqua.getChart();

// use the object
avl = cht.isChartAvailable();
aqua.console.println(avl);

var ds = aqua.data.newDataSet("country,text,freight,number");

ds.addRowWithValues("US", 10);
ds.addRowWithValues("UK", 20);
ds.addRowWithValues("Japan", 40);
ds.addRowWithValues("Canada", 20);
ds.addRowWithValues("France", 15);
ds.addRowWithValues("Germany", 35);

chart = cht.newChart();
var model = chart.getModel();
model.setDataSource(ds);

chart.getModel().addCategoryField("country");
chart.getModel().addSeriesField("freight");
chart.getProperties().setChartType(1, "area");

chart.properties.setBackgroundColorBottom(260000);
// Set PIE
chart.properties.setChartType(11);


aqua.chart.render(chart);

// image will be available after 5 second delay
var url = aqua.chart.cache(chart, 5);
aqua.response.write('<img src=').write(url).write('>');
aqua.response.write('<p>');

// exit
aqua.exit();

2 attachments

Issue #4076

Closed
Fixed
Resolved 2010-05-26T18:26:46Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017