Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…on-charts into feat-legend-optional
  • Loading branch information
scottdickerson committed Dec 12, 2019
2 parents ac4862f + 10b7c8d commit c13d0a8
Show file tree
Hide file tree
Showing 280 changed files with 2,111 additions and 1,181 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
dist: trusty
language: node_js
node_js:
- '8'
- '11'
env:
- MOZ_HEADLESS=1
addons:
chrome: stable
firefox: latest
if: (tag AND tag =~ ^v) OR (commit_message =~ ^Merge\spull\srequest\s#) OR (type = pull_request)
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.1
- export PATH="$HOME/.yarn/bin:$PATH"
- .travis/before_install.sh
- "google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &"
install: yarn --offline
script:
- lerna run lint
- lerna run test
- yarn run lint
- yarn run test
- yarn run build-all
sudo: false
deploy:
-
Expand Down
2 changes: 0 additions & 2 deletions .travis/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env bash

set -e

yarn global add lerna@3.13.4
111 changes: 111 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,117 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.22.1](https://github.com/IBM/carbon-charts/compare/v0.22.0...v0.22.1) (2019-12-12)


### Bug Fixes

* **charts-angular:** update build toolchain ([aa63925](https://github.com/IBM/carbon-charts/commit/aa63925))





# [0.22.0](https://github.com/IBM/carbon-charts/compare/v0.21.0...v0.22.0) (2019-12-09)


### Features

* **core, angular, react, vue:** Update chart width & height through options ([f050c35](https://github.com/IBM/carbon-charts/commit/f050c35))





# [0.21.0](https://github.com/IBM/carbon-charts/compare/v0.20.1...v0.21.0) (2019-12-09)


### Features

* **core, angular, react, vue:** allow customizations to pie labels & the donut center number ([#427](https://github.com/IBM/carbon-charts/issues/427)) ([0446045](https://github.com/IBM/carbon-charts/commit/0446045))





## [0.20.1](https://github.com/IBM/carbon-charts/compare/v0.20.0...v0.20.1) (2019-12-04)


### Bug Fixes

* **core:** loop also through non-display data to assign colors to datasets ([#394](https://github.com/IBM/carbon-charts/issues/394)) ([5ba8952](https://github.com/IBM/carbon-charts/commit/5ba8952))





# [0.20.0](https://github.com/IBM/carbon-charts/compare/v0.19.0...v0.20.0) (2019-12-02)


### Features

* **core:** add title truncation to tooltip ([bdd677c](https://github.com/IBM/carbon-charts/commit/bdd677c))





# [0.19.0](https://github.com/IBM/carbon-charts/compare/v0.18.0...v0.19.0) (2019-12-02)


### Bug Fixes

* **angular:** update zone.js peerDependency range ([15cbddd](https://github.com/IBM/carbon-charts/commit/15cbddd))


### Features

* **core:** export interfaces and configurations ([df7f557](https://github.com/IBM/carbon-charts/commit/df7f557))





# [0.18.0](https://github.com/IBM/carbon-charts/compare/v0.17.1...v0.18.0) (2019-12-02)


### Bug Fixes

* **bar:** fix lint errors ([0d04b04](https://github.com/IBM/carbon-charts/commit/0d04b04))
* **tooltip:** rename defaultTooltip defaultHTML ([cf8f34e](https://github.com/IBM/carbon-charts/commit/cf8f34e))


### Features

* **bar:** pass default tooltip to customHTML tooltip ([b6f519b](https://github.com/IBM/carbon-charts/commit/b6f519b))
* **tooltip:** for customHTML pass along the HTML tooltip ([7d1a026](https://github.com/IBM/carbon-charts/commit/7d1a026))





## [0.17.1](https://github.com/IBM/carbon-charts/compare/v0.17.0...v0.17.1) (2019-11-29)


### Bug Fixes

* **core:** build optimizations ([fef77e5](https://github.com/IBM/carbon-charts/commit/fef77e5))





# [0.17.0](https://github.com/IBM/carbon-charts/compare/v0.16.25...v0.17.0) (2019-11-29)


### Features

* **core:** date/time locale support + tick formatting ([bc02012](https://github.com/IBM/carbon-charts/commit/bc02012))





## [0.16.25](https://github.com/IBM/carbon-charts/compare/v0.16.24...v0.16.25) (2019-10-29)


Expand Down
70 changes: 5 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,71 +17,11 @@
</p>
</p>

## Table of contents

- [Installation](#installation)
- [Demo & Docs](#demo-and-documentation)
- [Run Charts locally](#run-charts-locally)
- [Component status](#component-status)
- [Bugs and feature requests](#bugs-and-feature-requests)
- [Contributing](#contributing)

## Getting started

### Installation

Run:
```bash
yarn global add @storybook/cli

yarn add @carbon/charts
```

Or if you use NPM:
```bash
npm i -g @storybook/cli

npm install @carbon/charts --save
```

## Demo and documentation
**Charts demos:**
- [Vanilla JS](https://carbon-design-system.github.io/carbon-charts/)
- [Angular](https://carbon-design-system.github.io/carbon-charts/angular)
- [React](https://carbon-design-system.github.io/carbon-charts/react)
- [Vue](https://carbon-design-system.github.io/carbon-charts/vue)

**Docs:** <https://carbon-design-system.github.io/carbon-charts/documentation/>

### Code Samples
<p align="center">
<img src="assets/demo-stacked-bar.png" alt="Stacked Bar Chart" width="600" />
</p>

<p align="center">
<a href="https://codesandbox.io/s/149vrzo62l">
<img src="https://codesandbox.io/static/img/play-codesandbox.svg" alt="Edit Carbon Charts - Vanilla" />
</a>
</p>

- [Vanilla JS](https://codesandbox.io/s/149vrzo62l)
- [Angular](https://codesandbox.io/s/k32kjy5qnr)
- [React](https://codesandbox.io/s/pppmo3ollx)
- [Vue](https://codesandbox.io/s/040w2rqrxp)

### Run Charts locally
1. Fork the project and clone your fork:

```bash
# Clone your fork of the repo into the current directory
git clone git@github.com:<your-username>/carbon-charts.git
# Navigate to the newly cloned directory
cd carbon-charts
```

2. Run `yarn` to install Node.js dependencies.
3. Run `yarn run demo:server` to serve up the demo locally.
4. Finally, open <http://localhost:9001/> in your browser. SPOILER ALERT: There's no "Hello, World!"
## Packages
- [Vanilla](./packages/core)
- [Angular](./packages/angular)
- [React](./packages/react)
- [Vue](./packages/vue)

## Component status
:white_check_mark: Stable :hourglass_flowing_sand: In progress
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
]
}
},
"version": "0.16.25"
"version": "0.22.1"
}
87 changes: 87 additions & 0 deletions packages/angular/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,93 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.22.1](https://github.com/IBM/carbon-charts/compare/v0.22.0...v0.22.1) (2019-12-12)


### Bug Fixes

* **charts-angular:** update build toolchain ([aa63925](https://github.com/IBM/carbon-charts/commit/aa63925))





# [0.22.0](https://github.com/IBM/carbon-charts/compare/v0.21.0...v0.22.0) (2019-12-09)


### Features

* **core, angular, react, vue:** Update chart width & height through options ([f050c35](https://github.com/IBM/carbon-charts/commit/f050c35))





# [0.21.0](https://github.com/IBM/carbon-charts/compare/v0.20.1...v0.21.0) (2019-12-09)

**Note:** Version bump only for package @carbon/charts-angular





## [0.20.1](https://github.com/IBM/carbon-charts/compare/v0.20.0...v0.20.1) (2019-12-04)

**Note:** Version bump only for package @carbon/charts-angular





# [0.20.0](https://github.com/IBM/carbon-charts/compare/v0.19.0...v0.20.0) (2019-12-02)

**Note:** Version bump only for package @carbon/charts-angular





# [0.19.0](https://github.com/IBM/carbon-charts/compare/v0.18.0...v0.19.0) (2019-12-02)


### Bug Fixes

* **angular:** update zone.js peerDependency range ([15cbddd](https://github.com/IBM/carbon-charts/commit/15cbddd))





# [0.18.0](https://github.com/IBM/carbon-charts/compare/v0.17.1...v0.18.0) (2019-12-02)

**Note:** Version bump only for package @carbon/charts-angular





## [0.17.1](https://github.com/IBM/carbon-charts/compare/v0.17.0...v0.17.1) (2019-11-29)


### Bug Fixes

* **core:** build optimizations ([fef77e5](https://github.com/IBM/carbon-charts/commit/fef77e5))





# [0.17.0](https://github.com/IBM/carbon-charts/compare/v0.16.25...v0.17.0) (2019-11-29)


### Features

* **core:** date/time locale support + tick formatting ([bc02012](https://github.com/IBM/carbon-charts/commit/bc02012))





## [0.16.25](https://github.com/IBM/carbon-charts/compare/v0.16.24...v0.16.25) (2019-10-29)

**Note:** Version bump only for package @carbon/charts-angular
Expand Down
17 changes: 13 additions & 4 deletions packages/angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,29 @@
**[Storybook Demos](https://carbon-design-system.github.io/carbon-charts/angular)**

**[Storybook Demo Sources](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/angular/stories)**

## Getting Started

Run the following command using [npm](https://www.npmjs.com/):

```bash
npm install -S @carbon/charts-angular
npm install -S @carbon/charts @carbon/charts-angular d3
```

If you prefer [Yarn](https://yarnpkg.com/en/), use the following command
instead:

```bash
yarn add @carbon/charts-angular
yarn add @carbon/charts @carbon/charts-angular d3
```

## Sample Project
[Edit on Stackblitz](https://stackblitz.com/edit/carbon-charts-angular-vznxot)
## Step-by-step Instructions
[Read on carbondesignsystem.com](https://www.carbondesignsystem.com/data-visualization/getting-started/angular)

## Charting Data & Options
Although we will definitely introduce new models in the future as we start shipping new components such as maps, Data and options follow the same model in all charts, with minor exceptions and differences in specific components, .

For instance, in the case of pie and donut charts, you would only provide one data set. In the case of donut charts, you can pass in an additional field called `center` in your options configuring the donut center.

There are also additional options available depending on the chart type being used, [for more examples please see here](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/core/demo/demo-data).
Loading

0 comments on commit c13d0a8

Please sign in to comment.