forked from carbon-design-system/carbon-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/carbon-design-system/carb…
…on-charts into sparkline-with-scale-color-option * 'master' of https://github.com/carbon-design-system/carbon-charts: (24 commits) v0.41.4 Merge pull request carbon-design-system#882 from theiliad/demo-treemap-fix docs(core): add theme & API tutorials to storybook (carbon-design-system#883) v0.41.3 Merge pull request carbon-design-system#880 from sophiiae/fix-import-colors fix(core): use fill:transparent for toolbar controls (carbon-design-system#884) v0.41.2 fix(core): tooltips should hide when mouseout is triggered on the chart holder (carbon-design-system#887) fix(core): sanitize user provided axis domains add treemap to the component status table v0.41.1 Merge pull request carbon-design-system#719 from theiliad/tree-map fix(core): correct axis title paddings in y-axes (carbon-design-system#873) v0.41.0 fix: use fill:none to allow transparent toolbar control background (carbon-design-system#858) feat(core): add alignment options for gauge charts (carbon-design-system#877) v0.40.14 fix(core): replace import to lodash with lodash-es fix(core): only set zoombar data and sanitize date values if a cartesian time-series chart v0.40.13 ...
- Loading branch information
Showing
78 changed files
with
1,983 additions
and
650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ | |
] | ||
} | ||
}, | ||
"version": "0.40.11" | ||
"version": "0.41.4" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { | ||
Component, | ||
AfterViewInit | ||
} from "@angular/core"; | ||
|
||
import { BaseChart } from "./base-chart.component"; | ||
|
||
import { TreemapChart } from "@carbon/charts"; | ||
|
||
/** | ||
* Wrapper around `TreemapChart` in carbon charts library | ||
* | ||
* Most functions just call their equivalent from the chart library. | ||
*/ | ||
@Component({ | ||
selector: "ibm-treemap-chart", | ||
template: `` | ||
}) | ||
export class TreemapChartComponent extends BaseChart implements AfterViewInit { | ||
/** | ||
* Runs after view init to create a chart, attach it to `elementRef` and draw it. | ||
*/ | ||
ngAfterViewInit() { | ||
this.chart = new TreemapChart( | ||
this.elementRef.nativeElement, | ||
{ | ||
data: this.data, | ||
options: this.options | ||
} | ||
); | ||
|
||
Object.assign(this, this.chart); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.