Comments (6)
Forgot to mention I am using the latest version of gwt-charts 0.9.9
Original comment by [email protected]
on 10 Jan 2013 at 8:46
from gwt-charts.
I've tried with this snippet and worked:
GeoChartOptions options = GeoChartOptions.create();
GeoChartColorAxis geoChartColorAxis = GeoChartColorAxis.create();
JsArrayString arrayString = JsArrayString.createArray().cast();
arrayString.set(0, "red");
arrayString.set(1, "blue");
arrayString.set(2, "green");
geoChartColorAxis.setColors(arrayString);
options.setColorAxis(geoChartColorAxis);
Nevertheless, I'll be changing this method so you can simply write:
GeoChartOptions options = GeoChartOptions.create();
GeoChartColorAxis geoChartColorAxis = GeoChartColorAxis.create();
geoChartColorAxis.setColors("red", "blue", "green");
options.setColorAxis(geoChartColorAxis);
Meanwhile can you post a snippet so I can reproduce the problem?
Original comment by [email protected]
on 10 Jan 2013 at 11:22
- Changed state: Accepted
from gwt-charts.
I have been able to change the colors also with the stand alone project when
used only gwt and gwt-charts latest version. But in the main projects I am
using smartgwt with highcharts, so to me it seems there is some conflict with
name/namespace which is causing the error. The code snippet to reproduce is the
same exactly like this but in the project there are widgets from smartgwt and
highcharts too. If you run the below code in a seperate project it will work
fine but combined with the above mention tools you will get the error reported
earlier by me.
GeoChartOptions options = GeoChartOptions.create();
GeoChartColorAxis colorsAxis = GeoChartColorAxis.create();
colorsAxis.setValues(ArrayHelper.toJsArrayNumber(1,40,100,400,4000));
colorsAxis.setColors(ArrayHelper.toJsArrayString("#FFE6E6","#FF4D4D","#FF0000","#CC0000","#4C0000"));
//colorsAxis.setMinValue(5);
options.setColorAxis(colorsAxis);
options.setRegion("world");
//options.setWidth("100%");
options.setHeight(860);
DataTable dataTable = DataTable.create();
dataTable.addColumn(ColumnType.STRING, "Country");
dataTable.addColumn(ColumnType.NUMBER, "No. od Calls");
dataTable.addRows(4);
dataTable.setValue(0, 0, "India");
dataTable.setValue(1, 0, "US");
dataTable.setValue(2, 0, "UK");
dataTable.setValue(3, 0, "Norway");
dataTable.setValue(0, 1, 5);
dataTable.setValue(1, 1, 75);
dataTable.setValue(2, 1, 3);
dataTable.setValue(3, 1, 2234);
geoChart.draw(dataTable,options);
Thanks for any help/suggestions.
Original comment by [email protected]
on 11 Jan 2013 at 1:37
from gwt-charts.
[deleted comment]
from gwt-charts.
Probably related to Issue #40
There was an overlapping namespace with the custom ajaxloader.
Original comment by [email protected]
on 27 Aug 2014 at 2:35
- Changed state: Fixed
- Added labels: Milestone-0.9.10
from gwt-charts.
Original comment by [email protected]
on 3 Sep 2014 at 11:07
- Changed state: Released
from gwt-charts.
Related Issues (20)
- Setting the CandlestickChartOptions has no effect HOT 2
- dev mode 2.6 crashes HOT 1
- No support for changing size of BubbleChart points HOT 1
- Is this library still supported ? HOT 1
- Update library to the June 25, 2014 version HOT 1
- De-Selecting and redrawing in SelectHandler Callback causes selection to be re-selected HOT 1
- Missing "MotionChart" ChartPackage HOT 2
- Getting selections on MAP HOT 2
- colorAxis Not Working for Geochart HOT 2
- getImageURI() HOT 1
- ChartLayoutInterface should accept doubles instead of ints
- ApiLoader is not a singleton HOT 2
- Getting the selected value from a DateRangeFilter HOT 8
- DataView.toDataTable() is missing a return
- Fix line endings and redundant whitespaces HOT 1
- ChartLoader fails if multiple charts are being placed on a page. HOT 5
- RoleType: Style role type missing. HOT 1
- ColumnFunction broken in DataViewColumn
- gwt-charts is not updated for new google api loader HOT 2
- how to draw multiple charts in a single flex table using GWT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-charts.