Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: document is not defined. #257

Open
vaibhavgavade opened this issue Nov 26, 2019 · 0 comments
Open

ReferenceError: document is not defined. #257

vaibhavgavade opened this issue Nov 26, 2019 · 0 comments

Comments

@vaibhavgavade
Copy link

@vaibhavgavade vaibhavgavade commented Nov 26, 2019

Here is my code
import {Chart} from 'frappe-charts/dist/frappe-charts.min.cjs'
data = {
labels: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
datasets: [
{ values: [18, 40, 30, 35, 8, 52, 17, -4] }
]
}

const DemoChart=new Chart( "#chart", {
data: data,
type: 'bar',
height: 140,
colors: ['red']
});

export default DemoChart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.