Skip to content

Commit 1c65a08

Browse files
authored
Merge pull request #125 from PioneerCode/bug-fixes
Bug fixes
2 parents c5a46db + c749c1b commit 1c65a08

File tree

16 files changed

+80
-50
lines changed

16 files changed

+80
-50
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11

2+
<a name="0.13.3"></a>
3+
# [v0.13.3](https://github.com/PioneerCode/pioneer-charts/releases/tag/0.13.3) (2018-06-18)
4+
5+
### Fix
6+
7+
- Stop chart failure on empty data sets.
8+
- bar-chart
9+
- line-area-chart
10+
- pie-chart
11+
- table
12+
- Fix normalized height of table.
13+
- Responsive concerns in table.
14+
15+
### Features
16+
17+
- Add the ability to enable/disable sticky footer/header independently of each other.
18+
219
<a name="0.13.1"></a>
320
# [v0.13.1](https://github.com/PioneerCode/pioneer-charts/releases/tag/0.13.1) (2018-06-16)
421

apps/dev/src/app/pages/test/test.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="row">
44
<div class="col-sm">
55
<div class="pc-chart-container">
6-
<pcac-bar-horizontal-chart [config]="pcService.barHorizontalChartSingleConfig"></pcac-bar-horizontal-chart>
6+
<pcac-bar-horizontal-chart [config]="pcService.barHorizontalChartConfig"></pcac-bar-horizontal-chart>
77
</div>
88
</div>
99
</div>

apps/dev/src/assets/mock/table.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"height": 200,
3-
"enableSticky": true,
3+
"enableStickyHeader": true,
4+
"enableStickyFooter": true,
45
"data": [
56
{
67
"data": [

apps/docs/src/app/pages/docs/components/charts/table/table.component.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ <h3>API</h3>
2929
<pc-prism language="javascript" [code]="importCode"></pc-prism>
3030
<pc-base-config>
3131
<tr>
32-
<td>enableSticky</td>
33-
<td>Enable sticky header and footer.</td>
32+
<td>enableStickyHeader</td>
33+
<td>Enable sticky header.</td>
34+
</tr>
35+
<tr>
36+
<td>enableStickyFooter</td>
37+
<td>Enable sticky footer.</td>
3438
</tr>
3539
</pc-base-config>
3640
</div>

apps/docs/src/assets/mock/table.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"height": 200,
3-
"enableSticky": true,
3+
"enableStickyHeader": true,
4+
"enableStickyFooter": true,
45
"data": [
56
{
67
"data": [
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const environment = {
22
production: true,
3-
version: '0.13.2'
3+
version: '0.13.5'
44
};

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pioneer-charts",
3-
"version": "0.13.2",
3+
"version": "0.13.5",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve pioneer-charts-dev",
@@ -41,7 +41,7 @@
4141
"@angular/cli": "~6.0.0",
4242
"@angular/compiler-cli": "^6.0.0",
4343
"@angular/language-service": "^6.0.0",
44-
"@pioneer-code/pioneer-charts": "^0.13.2",
44+
"@pioneer-code/pioneer-charts": "^0.13.5",
4545
"@ryancavanaugh/prismjs": "^1.4.3-alpha",
4646
"@types/d3": "^5.0.0",
4747
"@types/jasmine": "~2.8.6",

projects/pcac/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"type": "git",
2323
"url": "https://github.com/PioneerCode/pioneer-charts"
2424
},
25-
"version": "0.13.2",
25+
"version": "0.13.5",
2626
"license": "MIT",
2727
"peerDependencies": {
2828
"@angular/common": "^6.0.0-rc.0 || ^6.0.0",

projects/pcac/src/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export class PcacBarChartHorizontalComponent implements OnChanges {
3636
}
3737

3838
ngOnChanges() {
39-
if (this.config && this.config.data) {
40-
this.buildChart();
41-
}
39+
this.buildChart();
4240
}
4341

4442
buildChart(): void {
45-
this.chartBuilder.buildChart(this.chartElm, this.config);
43+
if (this.config && this.config.data && this.config.data.length > 0) {
44+
this.chartBuilder.buildChart(this.chartElm, this.config);
45+
}
4646
}
4747

4848
/**
@@ -53,9 +53,7 @@ export class PcacBarChartHorizontalComponent implements OnChanges {
5353
const self = this;
5454
clearTimeout(this.resizeWindowTimeout);
5555
this.resizeWindowTimeout = setTimeout(() => {
56-
if (self.config.data.length > 0) {
5756
self.buildChart();
58-
}
5957
}, 300);
6058
}
6159
}

0 commit comments

Comments
 (0)