Carbon is a graphing library built using d3 visualization library. It provides an API for generating native graphs such as Line and Paired Result graphs based on design standards.
- d3 [v3.5.17]
- Polyfills:
- Object.assign
- Object.values
- Adheres to Cerner standard design template
- Responsive
- Native-built graphs
- Default theme for data points
- Line
- Multi-line
- Paired Result
- Spline line
- Timeline
- Pie
- Bar
- Gantt
- Legend
- Labels
- Grid
vertical & horizontal
- Axes
x and y or y2
- Regions
horizontal
- Supports different shapes for each data-set
- Supports custom SVG shapes for data-sets
Non-contiguous
data point line graphSparkline
graph (with Shapes are hidden)- Criticality indicators for data point
- Locale support for axes ticks
- Y and Y2 Axes label along with respective shapes
- Separate graph types to plugin based
- a11y
- Support additional themes
- Scatter-plot graph
- Area graphs
- Area spline graphs
- DST
- Tick counts
- Show/hide ticks
- Pan
For convenience, there are 2 sets of distributions provided.
lib/js
- [default] Onlycore
. Does not contain any dependencies, consumers need to provide the items listed in theDependencies
section before loading the graph.dist/js
- Contains core +d3
+ all the necessary polyfills needed to load the graphs.
Add dist/js/carbon-graphs.js
and dist/css/carbon-graphs.css
in your page and call appropriate graph type declarations mentioned in below documentation.
npm install
npm run dev
- http://localhost:9991/
- Android >= 4.4
- Chrome >= 35
- Firefox >= 31
- Internet Explorer >= 10
- iOS >= 7
- Opera >= 12
- Safari >= 7.1
Copyright 2017 - 2019 Cerner Innovation, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.