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();
|
175 KB
|
79 KB
Please retest
still occurs
use below script
// 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);
// image will be available after 5 second delay
url = chart.cache(5);
aqua.response.write('<img src=').write(url).write('>');
aqua.response.write('<p>');
// exit
aqua.exit();
still occurs
use below script
// 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);
// image will be available after 5 second delay
url = chart.cache(5);
aqua.response.write('<img src=').write(url).write('>');
aqua.response.write('<p>');
// exit
aqua.exit();
Can you reproduce on 3 machines? and provide screenshots?
Can you reproduce on 3 machines? and provide screenshots?
// 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);
// define a data set
var columns = ["shipcountry", "freight"];
var ds = aqua.data.newDataSet(columns);
// add dataset row with values
ds.addRowWithValues("US", 100);
ds.addRowWithValues("UK", 10);
ds.addRowWithValues("Japan", 200);
ds.addRowWithValues("Canada", 20);
ds.addRowWithValues("France", 300);
ds.addRowWithValues("Germany", 30);
chart = cht.newChart();
var model = chart.getModel();
model.setDataSource(ds);
chart.getModel().addCategoryField("country");
chart.getModel().addSeriesField("freight");
chart.properties.setBackgroundColorBottom(260000);
// Set PIE
chart.properties.setChartType(9);
url = chart.cache(3600);
aqua.response.write('<img src=').write(url).write('>');
aqua.response.write('<p>');
// grid results
writer = aqua.io.newHtmlWriter();
writer.setTableStyle('background:#ffffe1;');
writer.write(ds);
aqua.response.write(writer.toHtml());
aqua.response.write('<p>');
// 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);
// define a data set
var columns = ["shipcountry", "freight"];
var ds = aqua.data.newDataSet(columns);
// add dataset row with values
ds.addRowWithValues("US", 100);
ds.addRowWithValues("UK", 10);
ds.addRowWithValues("Japan", 200);
ds.addRowWithValues("Canada", 20);
ds.addRowWithValues("France", 300);
ds.addRowWithValues("Germany", 30);
chart = cht.newChart();
var model = chart.getModel();
model.setDataSource(ds);
chart.getModel().addCategoryField("country");
chart.getModel().addSeriesField("freight");
chart.properties.setBackgroundColorBottom(260000);
// Set PIE
chart.properties.setChartType(9);
url = chart.cache(3600);
aqua.response.write('<img src=').write(url).write('>');
aqua.response.write('<p>');
// grid results
writer = aqua.io.newHtmlWriter();
writer.setTableStyle('background:#ffffe1;');
writer.write(ds);
aqua.response.write(writer.toHtml());
aqua.response.write('<p>');
MATT - values are non-consecutive, there are a few placeholders in the implementation, for things like Radar charts, Donut charts, etc.
MATT - values are non-consecutive, there are a few placeholders in the implementation, for things like Radar charts, Donut charts, etc.
Issue #4076 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
Please retest