Comments (6)
it uses debug.js so you can set window.localStorage.debug = "*" and see the logs in your browser. Can you attach some code that I can run maybe I can help ?
from react-google-charts.
Cool thanks. Here's the code for the view with a screenshot.
import React from 'react';
import { withRouter } from 'react-router';
import { Chart } from 'react-google-charts'
import Topbar from '../../base/Topbar';
import Loading from '../../base/Loading';
import WizardNavigation from '../../misc/WizardNavigation';
import StatBlock from '../../story-forms/analyse/StatBlock';
class AnalyseView extends React.Component {
constructor(props) {
super(props);
this.state = {
options: {
title: 'Age vs. Weight comparison',
hAxis: {title: 'Age', minValue: 0, maxValue: 15},
vAxis: {title: 'Weight', minValue: 0, maxValue: 15},
legend: 'none'
},
rows: [
[8, 12],
[4, 5.5],
[11, 14],
[4, 5],
[3, 3.5],
[6.5, 7]
],
columns: [
{
'type': 'number',
'label' : 'Age'
},
{
'type' : 'number',
'label' : 'Weight'
}
]
}
}
render() {
const { loading, params } = this.props;
if (loading) {
return <Loading />;
}
return (
<div >
<Topbar category="Campaigns" title="Story Book Analytics" />
<div className="panel">
<div className="stat-blocks">
<StatBlock
number={19}
title="Today's views"
type="today-views"
/>
<StatBlock
number={19}
title="Week's views"
type="week-views"
/>
<StatBlock
number={19}
title="Month's views"
type="month-views"
/>
<StatBlock
number={19}
title="Total views"
type="total-views"
/>
</div>
<Chart
chartType="ScatterChart"
rows={this.state.rows}
columns={this.state.columns}
options={this.state.options}
loader={<Loading />}
graph_id="ScatterChart"
width={"100%"}
height={"400px"}
/>
</div>
<WizardNavigation
backLink={`/campaigns/story-books/${params.bookId}/share`}
bookId={params.bookId}
current="analyse"
/>
</div>
);
}
}
AnalyseView.propTypes = {
loading: React.PropTypes.bool.isRequired,
params: React.PropTypes.object.isRequired
};
export default withRouter(AnalyseView);
from react-google-charts.
Hey, can you tell me which react-google-charts version and react version you're using ? I couldn't reproduce on latest version with :
[email protected]
[email protected]
?
from react-google-charts.
I'm using the same versions as that. Also using latest Chrome (Version 54.0.2840.59 beta (64-bit))
from react-google-charts.
Can you try explicitly passing it chartPackages=['corechart']
? For some reason it's not passing it as a default in your setup.
from react-google-charts.
@rakannimer Hey sorry I've decided not to include any charts in my app for now. Feel free to close the issue if you can't replicate.
from react-google-charts.
Related Issues (20)
- [Bug]: Not getting selected iterate node on react_google_charts Treemap
- Add support for Marker GeoCharts and ISO-3166:2 district codes
- 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
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.