Comments (6)
Hello,
Could you please try again with version 1.0.0 ?
If it doesn't work please provide me with some code I can run to help you debug it.
from react-google-charts.
Slightly different behaviour, the “Table has no column” has “Rendering Chart…” below it now:
Even worse, now exchanging the (entire) contents of GoogleChartLoader.js from 0.1.8 does NOT fix the problem. 1.0.0. is seriously broken :-(
BTW, did you know a react-google-chart (no ’s’) package exists in the npm repository (easily confused).
Sorry not to bring better news (reverting to 0.1.8)
Allister
ΠΟωaττ - saving more than you think
+44 77 29 175634
Visit The NoWatt Blog http://www.nowatt.com/blog.aspx
http://www.nowatt.com http://www.nowatt.com/
On 25 May 2016, at 12:32, Rakan Nimer [email protected] wrote:
Hello,
Could you please try again with version 1.0.0 ?
If it doesn't work please provide me with some code I can run to help you debug it.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #46 (comment)
from react-google-charts.
You can't just replace the google chart loader code. Please read the code
in the demo folder that is powering :
rakannimer.github.io/react-google-charts
On Wed, May 25, 2016, 9:24 PM suecom [email protected] wrote:
Slightly different behaviour, the “Table has no column” has “Rendering
Chart…” below it now:Even worse, now exchanging the (entire) contents of GoogleChartLoader.js
from 0.1.8 does NOT fix the problem. 1.0.0. is seriously broken :-(BTW, did you know a react-google-chart (no ’s’) package exists in the npm
repository (easily confused).Sorry not to bring better news (reverting to 0.1.8)
Allister
ΠΟωaττ - saving more than you think
+44 77 29 175634
Visit The NoWatt Blog http://www.nowatt.com/blog.aspx
http://www.nowatt.com http://www.nowatt.com/On 25 May 2016, at 12:32, Rakan Nimer [email protected] wrote:
Hello,
Could you please try again with version 1.0.0 ?
If it doesn't work please provide me with some code I can run to help
you debug it.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
#46 (comment)—
You are receiving this because you commented.Reply to this email directly or view it on GitHub
#46 (comment)
from react-google-charts.
I can see why swapping the old loader in now doesn’t work; you switched to using bluebird promises - yuk :-) That is, the old loader returns the wrong sort of promise.
So, now I can’t get 1.0.0 to work at all (least with the old loader 0.2.2 worked). All I get is:
As mentioned, this code works fine with the 0.1.8 release.
The is very simplified skeleton:
var Chart = require('react-google-charts').Chart;
var ColChart = React.createClass({
populate: function(fromp, top, nodes)
// Set the DataTable up
...
// Load data
var l = 'used/' + this.props.userid + '/' + nodes[i].key +
'?from=' + fromx.format('YYYY-MM-DDTHH:mm:ss') + '&to=' + tox.format('YYYY-MM-DDTHH:mm:ss') +
'&resolution=' + resolution;
$.ajax({
url: l,
dataType: "json",
cache: true
})
.done(function(col, data) {
if(data.consumed.length > 0) {
for(var j = 0; j < data.consumed.length; j++) {
if(null != data.consumed[j].FromX && data.consumed[j].Used != -1000.00)
dt.addRow();
dt.setValue(dt.getNumberOfRows()-1, 0, new Date(data.consumed[j].FromX));
dt.setValue(dt.getNumberOfRows()-1, col, Number(data.consumed[j].Used));
}
}
}
this.setState({
options: colchartoptions,
data: dt
})
}
}.bind(this)
}
},
getInitialState: function() {
var dt = new google.visualization.DataTable();
return {options: colchartoptions, data: dt};
},
componentWillReceiveProps: function(nextProps) {
this.populate(nextProps.fromx, nextProps.tox,
nextProps.nodes);
},
render: function() {
// The datatable looks great here!
return (
<Chart chartType={'ComboChart'}
data={this.state.data}
options={this.state.options}
graph_id={"col_chart_id"}
/>
);
}
});
This is all babelified and put in a single bundle.js file. I guess the usage of your package changed after 0.2.2. Unable to follow the demo - sorry
Thanks for any help,
Allister
ΠΟωaττ - saving more than you think
+44 77 29 175634
Visit The NoWatt Blog http://www.nowatt.com/blog.aspx
http://www.nowatt.com http://www.nowatt.com/
On 25 May 2016, at 20:29, Rakan Nimer [email protected] wrote:
You can't just replace the google chart loader code. Please read the code
in the demo folder that is powering :
rakannimer.github.io/react-google-chartsOn Wed, May 25, 2016, 9:24 PM suecom [email protected] wrote:
Slightly different behaviour, the “Table has no column” has “Rendering
Chart…” below it now:Even worse, now exchanging the (entire) contents of GoogleChartLoader.js
from 0.1.8 does NOT fix the problem. 1.0.0. is seriously broken :-(BTW, did you know a react-google-chart (no ’s’) package exists in the npm
repository (easily confused).Sorry not to bring better news (reverting to 0.1.8)
Allister
ΠΟωaττ - saving more than you think
+44 77 29 175634
Visit The NoWatt Blog http://www.nowatt.com/blog.aspx
http://www.nowatt.com http://www.nowatt.com/On 25 May 2016, at 12:32, Rakan Nimer [email protected] wrote:
Hello,
Could you please try again with version 1.0.0 ?
If it doesn't work please provide me with some code I can run to help
you debug it.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
#46 (comment)—
You are receiving this because you commented.Reply to this email directly or view it on GitHub
#46 (comment)—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #46 (comment)
from react-google-charts.
Yeah the problem is that you're passing a Google Visualization API DataTable new google.visualization.DataTable()
If you check the documentation you'll see that you need to pass an array of arrays for the data prop. Or alternatively you can use the convenience rows and columns props.
Please read this to see examples of valid data to pass to the library.
Closing this issue.
from react-google-charts.
I noticed your examples used that data format, but there was no mention of datatables no longer being supported (as they’re native to Googles visualisation!).
Why did you stop them? How can you do dashboards, filtering, roles, annotations, etc. without them? It greatly reduces the ease/flexibility of using Googles Charts :-(
Allister
ΠΟωaττ - saving more than you think
+44 77 29 175634
Visit The NoWatt Blog http://www.nowatt.com/blog.aspx
http://www.nowatt.com http://www.nowatt.com/
On 26 May 2016, at 10:19, Rakan Nimer [email protected] wrote:
Yeah the problem is that you're passing a Google Visualization API DataTable new google.visualization.DataTable()
If you check the documentation you'll see that you need to pass an array of arrays for the data prop. Or alternatively you can use the convenience rows and columns props.
Please read this https://github.com/RakanNimer/react-google-charts/blob/master/src/constants/SAMPLE_DATA.js to see examples of valid data to pass to the library.
Closing this issue.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #46 (comment)
from react-google-charts.
Related Issues (20)
- Options are not documented
- Allow to close tooltips programmatically
- Storage size formats
- [Bug]: addOneTimeListener this doesn't seem to be supported?
- [Bug]: Can't seem to get MutationObserver to work inside an event, but it works with the underlying library
- [Bug]: Bar Chart (and Other?) Examples Broken
- [Bug]: No Material UI Support?
- [Bug]: Scatter chart options not recognized (Material)
- Remove deprecated dependency react-scripts
- [Bug]: Diff tooltips prefix option
- [Bug]: Stacked Column Chart - Show Annotation on Bars HOT 1
- [Bug]: ReferenceError: Property 'document' doesn't exist
- [Bug]: sort and page events are not working with Table chart HOT 1
- [Bug]: Geo chart (maybe other) doesn't respect React@18 StrictMode
- [Bug]: Select event is not working in strict mode. HOT 1
- [Bug]: loadingStatus state for react-google-charts is set as loading permanantly HOT 5
- [Bug]: Org Chart does not render label on top node HOT 1
- [Bug]: Charts with spreadsheets does not work
- [Bug]: can't only show lable in tooltip
- [Bug]: ready event executed once if we have multiple table
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 react-google-charts.