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

Pie chart is not drawn (is it due to decimal points?) #186

Closed
Mashiane opened this issue Jun 20, 2018 · 1 comment
Closed

Pie chart is not drawn (is it due to decimal points?) #186

Mashiane opened this issue Jun 20, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@Mashiane
Copy link

Mashiane commented Jun 20, 2018

Expected Behaviour

The pie chart to draw on the page

Actual Behaviour

Nothing is drawn except the legends on the chart

Steps to Reproduce:

Here is a pen for it: https://codepen.io/anele-mash-mbanga/pen/aKYzQP

let chart = new frappe.Chart("#fcjobs", {
data: {
labels: ['Female','Male','PDI','PWD','Semi Skilled','Skilled','Un Skilled','Youth','Jobs'],
datasets: [{name: 'Jobs Created', values: [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,32.0]}]
},
title: 'Jobs Created',
type: 'pie',
colors: ['#f44336','#e91e63','#9c27b0','#673ab7','#3f51b5','#2196f3','#03a9f4','#00bcd4','#009688'],
height: 500,
isNavigable: 0,
valuesOverPoints: 1,
barOptions: {
stacked: 0
},
lineOptions: {dotSize: 4,
hideLine: 0,
hideDots: 0,
heatline: 0,
areaFill: 0
},
axisOptions: {
yAxisMode: 'span',
xAxisMode: 'span',
xIsSeries: 0
},
maxLegendPoints: 20,
maxSlices: 10,
barOptions: { height: 20, depth: 2},
discreteDomains: 1
});

NOTE: Add a GIF/Screenshot if required.
jobscreated

Frappé Charts version:
1.1

@scmmishra scmmishra added this to the Close 30 milestone Jul 20, 2019
@scmmishra scmmishra added the bug label Jul 20, 2019
@scmmishra scmmishra self-assigned this Jul 29, 2019
@scmmishra
Copy link
Contributor

Fixed in a recent PR, I am closing the issue.

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

No branches or pull requests

2 participants