Skip to content

Commit 7ec7329

Browse files
author
Jelte Lagendijk
committed
Merge branch 'Mcpoowl-master'
2 parents fa4de23 + 7b2c3e9 commit 7ec7329

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "ChartJS",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "This widget is a wrapper for the ChartJS library and you can use it to visualize your aggregated data.",
5-
"license": "",
6-
"author": "",
5+
"license": "Apache License, Version 2",
6+
"author": "Mendix",
77
"private": true,
88
"dependencies": {},
99
"devDependencies": {

src/ChartJS/widgets/DoughnutChart/widget/DoughnutChart.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ define([
119119
//Number - The width of each segment stroke
120120
segmentStrokeWidth : this.segmentStrokeWidth,
121121

122-
//Number - The percentage of the chart that we cut out of the middle
123-
percentageInnerCutout : this.percentageInnerCutout, // This is 0 for Pie charts
124122

125123
//Number - Amount of animation steps
126124
animationSteps : this.animationSteps,
@@ -142,6 +140,9 @@ define([
142140
// maintainAspectRatio
143141
maintainAspectRatio : this.maintainAspectRatio,
144142

143+
//Number - The percentage of the chart that we cut out of the middle
144+
cutoutPercentage : this.percentageInnerCutout,
145+
145146
// Custom tooltip?
146147
customTooltips : false //lang.hitch(this, this.customTooltip)
147148

src/ChartJS/widgets/PieChart/widget/PieChart.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ define([
115115
//Number - The width of each segment stroke
116116
segmentStrokeWidth : this.segmentStrokeWidth,
117117

118-
//Number - The percentage of the chart that we cut out of the middle
119-
percentageInnerCutout : 0, // This is 0 for Pie charts
120-
121118
//Number - Amount of animation steps
122119
animationSteps : this.animationSteps,
123120

@@ -138,6 +135,10 @@ define([
138135
// maintainAspectRatio
139136
maintainAspectRatio : this.maintainAspectRatio,
140137

138+
139+
//cutOut of pie
140+
cutoutPercentage : 0, //always zero for Pie chart
141+
141142
// Custom tooltip?
142143
customTooltips : false //lang.hitch(this, this.customTooltip)
143144

src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="ChartJS" version="3.1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="ChartJS" version="3.1.2" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="ChartJS/widgets/BarChart/BarChart.xml"/>
66
<widgetFile path="ChartJS/widgets/LineChart/LineChart.xml"/>

test/widgets/ChartJS.mpk

-18 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)