Skip to content

Commit

Permalink
Rename library to ngx-charts; Prefix component and directive selector…
Browse files Browse the repository at this point in the history
…s with ngx-charts
  • Loading branch information
marjan-georgiev committed Dec 19, 2016
1 parent e8fa758 commit d61529e
Show file tree
Hide file tree
Showing 77 changed files with 292 additions and 293 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
**Please tell us about your environment:**
<!-- Operating system, IDE, package manager, HTTP server, ... -->

* **ng2d3 version:** x.x.x
<!-- Check whether this is still an issue in the most recent ng2d3 version -->
* **ngx-charts version:** x.x.x
<!-- Check whether this is still an issue in the most recent ngx-charts version -->

* **Angular version:** 2.x.x
<!-- Check whether this is still an issue in the most recent Angular version -->
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ng2d3 [![Join the chat at https://gitter.im/swimlane/ng2d3](https://badges.gitter.im/swimlane/ng2d3.svg)](https://gitter.im/swimlane/ng2d3?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/swimlane/ng2d3.svg?branch=master)](https://travis-ci.org/swimlane/ng2d3) [![Code Climate](https://codeclimate.com/github/swimlane/ng2d3/badges/gpa.svg)](https://codeclimate.com/github/swimlane/ng2d3) [![Test Coverage](https://codeclimate.com/github/swimlane/ng2d3/badges/coverage.svg)](https://codeclimate.com/github/swimlane/ng2d3/coverage) [![Dependency Status](https://david-dm.org/swimlane/ng2d3.svg)](https://david-dm.org/swimlane/ng2d3) [![devDependency Status](https://david-dm.org/swimlane/ng2d3/dev-status.svg)](https://david-dm.org/swimlane/ng2d3#info=devDependencies) [![npm version](https://badge.fury.io/js/ng2d3.svg)](http://badge.fury.io/js/ng2d3) [![npm downloads](https://img.shields.io/npm/dm/ng2d3.svg)](https://npmjs.org/ng2d3)
# ngx-charts [![Join the chat at https://gitter.im/swimlane/ngx-charts](https://badges.gitter.im/swimlane/ngx-charts.svg)](https://gitter.im/swimlane/ngx-charts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/swimlane/ngx-charts.svg?branch=master)](https://travis-ci.org/swimlane/ngx-charts) [![Code Climate](https://codeclimate.com/github/swimlane/ngx-charts/badges/gpa.svg)](https://codeclimate.com/github/swimlane/ngx-charts) [![Test Coverage](https://codeclimate.com/github/swimlane/ngx-charts/badges/coverage.svg)](https://codeclimate.com/github/swimlane/ngx-charts/coverage) [![Dependency Status](https://david-dm.org/swimlane/ngx-charts.svg)](https://david-dm.org/swimlane/ngx-charts) [![devDependency Status](https://david-dm.org/swimlane/ngx-charts/dev-status.svg)](https://david-dm.org/swimlane/ngx-charts#info=devDependencies) [![npm version](https://badge.fury.io/js/ngx-charts.svg)](http://badge.fury.io/js/ngx-charts) [![npm downloads](https://img.shields.io/npm/dm/ngx-charts.svg)](https://npmjs.org/ngx-charts)

Angular2 + D3js Composable Re-usable Charting Framework.

ng2d3 is unique because we don't merely wrap d3, nor any other chart engine for that matter. It is using Angular to render and animate the SVG elements with all of its binding and speed goodness, and uses d3 for the excellent math functions, scales, axis and shape generators, etc. By having Angular do all of the rendering it opens us up to endless possibilities the Angular platform provides such as AoT, Universal, etc.
ngx-charts is unique because we don't merely wrap d3, nor any other chart engine for that matter. It is using Angular to render and animate the SVG elements with all of its binding and speed goodness, and uses d3 for the excellent math functions, scales, axis and shape generators, etc. By having Angular do all of the rendering it opens us up to endless possibilities the Angular platform provides such as AoT, Universal, etc.

Data visualization is a science but that doesn't mean it has to be ugly. One of the big efforts we've made while creating this project is to make the charts aesthetically pleasing. The styles are also completely customizable through CSS, so you can override them as you please.

Also, constructing custom charts is possible by leveraging the various ng2d3 components that are exposed through the ng2d3 module.
Also, constructing custom charts is possible by leveraging the various ngx-charts components that are exposed through the ngx-charts module.

For more info, check out the [documentation](https://swimlane.gitbooks.io/ng2d3/content/) and the [demos](https://swimlane.github.io/ng2d3/).
For more info, check out the [documentation](https://swimlane.gitbooks.io/ngx-charts/content/) and the [demos](https://swimlane.github.io/ngx-charts/).

## Features
### Chart Types
Expand Down Expand Up @@ -36,4 +36,4 @@ For more info, check out the [documentation](https://swimlane.gitbooks.io/ng2d3/
- Works with ngUpgrade

## Credits
`ng2d3` is a [Swimlane](http://swimlane.com) open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.
`ngx-charts` is a [Swimlane](http://swimlane.com) open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.
6 changes: 3 additions & 3 deletions book.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"gitbook": "3.x.x",
"title": "ng2d3",
"title": "ngx-charts",
"root": "/docs",
"plugins": [
"highlight",
Expand All @@ -15,7 +15,7 @@
],
"pluginsConfig": {
"github": {
"url": "https://github.com/swimlane/ng2d3/"
"url": "https://github.com/swimlane/ngx-charts/"
},
"theme-api": {
"theme": "dark"
Expand All @@ -25,7 +25,7 @@
},
"githubcontributors": {
"githubOwner": "swimlane",
"githubRepository": "ng2d3"
"githubRepository": "ngx-charts"
}
}
}
2 changes: 1 addition & 1 deletion config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = function(options) {
new HtmlWebpackPlugin({
template: 'demo/index.ejs',
chunksSortMode: 'dependency',
title: 'ng2d3'
title: 'ngx-charts'
}),
new WebpackNotifierPlugin({
excludeWarnings: true
Expand Down
6 changes: 3 additions & 3 deletions config/webpack.package.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { ENV, dir, APP_VERSION } = require('./helpers');

const banner =
`/**
* ng2d3 v${APP_VERSION} (https://github.com/swimlane/ng2d3)
* ngx-charts v${APP_VERSION} (https://github.com/swimlane/ngx-charts)
* Copyright 2016
* Licensed under MIT
*/`;
Expand Down Expand Up @@ -43,7 +43,7 @@ module.exports = function(env) {
output: {
path: dir('release'),
libraryTarget: 'umd',
library: 'ng2d3',
library: 'ngx-charts',
umdNamedDefine: true
},
externals: {
Expand Down Expand Up @@ -85,7 +85,7 @@ module.exports = function(env) {
new ngtools.AotPlugin({
tsConfigPath: 'tsconfig-aot.json',
baseDir: dir()
entryModule: dir('ng2d3.ts') + '#NG2D3Module'
entryModule: dir('ngx-charts.ts') + '#NgxChartsModule'
}),
new CleanWebpackPlugin(['release'], {
root: dir(),
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = function(env) {
new HtmlWebpackPlugin({
template: 'demo/index.ejs',
chunksSortMode: 'dependency',
title: 'ng2d3',
title: 'ngx-charts',
googleAnalytics: {
trackingId: 'UA-57474611-3',
pageViewOnLoad: true
Expand Down
86 changes: 43 additions & 43 deletions demo/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Component, OnInit} from '@angular/core';
import d3 from '../src/d3';

import { colorSets } from '../src/utils/color-sets';
import '../src/ng2d3.scss';
import '../src/ngx-charts.scss';

import {single, multi, countries, generateData, generateGraph} from './data';
import chartGroups from './chartTypes';
Expand All @@ -14,7 +14,7 @@ import './demo.scss';
<main [class]="theme">
<div class="chart-col">
<div style="position: absolute; top: 50px; left: 50px; right: 50px; bottom: 50px;">
<bar-vertical
<ngx-charts-bar-vertical
*ngIf="chartType === 'bar-vertical'"
class="chart-container"
[view]="view"
Expand All @@ -32,8 +32,8 @@ import './demo.scss';
[showGridLines]="showGridLines"
(select)="select($event)"
(legendLabelClick)="onLegendLabelClick($event)">
</bar-vertical>
<bar-horizontal
</ngx-charts-bar-vertical>
<ngx-charts-bar-horizontal
*ngIf="chartType === 'bar-horizontal'"
class="chart-container"
[view]="view"
Expand All @@ -51,8 +51,8 @@ import './demo.scss';
[showGridLines]="showGridLines"
(legendLabelClick)="onLegendLabelClick($event)"
(select)="select($event)">
</bar-horizontal>
<bar-vertical-2d
</ngx-charts-bar-horizontal>
<ngx-charts-bar-vertical-2d
*ngIf="chartType === 'bar-vertical-2d'"
class="chart-container"
[view]="view"
Expand All @@ -70,8 +70,8 @@ import './demo.scss';
(legendLabelClick)="onLegendLabelClick($event)"
[showGridLines]="showGridLines"
(select)="select($event)">
</bar-vertical-2d>
<bar-horizontal-2d
</ngx-charts-bar-vertical-2d>
<ngx-charts-bar-horizontal-2d
*ngIf="chartType === 'bar-horizontal-2d'"
class="chart-container"
[view]="view"
Expand All @@ -89,8 +89,8 @@ import './demo.scss';
[yAxisLabel]="yAxisLabel"
[showGridLines]="showGridLines"
(select)="select($event)">
</bar-horizontal-2d>
<bar-vertical-stacked
</ngx-charts-bar-horizontal-2d>
<ngx-charts-bar-vertical-stacked
*ngIf="chartType === 'bar-vertical-stacked'"
class="chart-container"
[view]="view"
Expand All @@ -108,8 +108,8 @@ import './demo.scss';
[yAxisLabel]="yAxisLabel"
[showGridLines]="showGridLines"
(select)="select($event)">
</bar-vertical-stacked>
<bar-horizontal-stacked
</ngx-charts-bar-vertical-stacked>
<ngx-charts-bar-horizontal-stacked
*ngIf="chartType === 'bar-horizontal-stacked'"
class="chart-container"
[view]="view"
Expand All @@ -127,8 +127,8 @@ import './demo.scss';
[yAxisLabel]="yAxisLabel"
[showGridLines]="showGridLines"
(select)="select($event)">
</bar-horizontal-stacked>
<bar-vertical-normalized
</ngx-charts-bar-horizontal-stacked>
<ngx-charts-bar-vertical-normalized
*ngIf="chartType === 'bar-vertical-normalized'"
class="chart-container"
[view]="view"
Expand All @@ -146,8 +146,8 @@ import './demo.scss';
[yAxisLabel]="yAxisLabel"
[showGridLines]="showGridLines"
(select)="select($event)">
</bar-vertical-normalized>
<bar-horizontal-normalized
</ngx-charts-bar-vertical-normalized>
<ngx-charts-bar-horizontal-normalized
*ngIf="chartType === 'bar-horizontal-normalized'"
class="chart-container"
[view]="view"
Expand All @@ -165,8 +165,8 @@ import './demo.scss';
(legendLabelClick)="onLegendLabelClick($event)"
[showGridLines]="showGridLines"
(select)="select($event)">
</bar-horizontal-normalized>
<pie-chart
</ngx-charts-bar-horizontal-normalized>
<ngx-charts-pie-chart
*ngIf="chartType === 'pie-chart'"
class="chart-container"
[view]="view"
Expand All @@ -179,8 +179,8 @@ import './demo.scss';
(legendLabelClick)="onLegendLabelClick($event)"
[gradient]="gradient"
(select)="select($event)">
</pie-chart>
<advanced-pie-chart
</ngx-charts-pie-chart>
<ngx-charts-advanced-pie-chart
*ngIf="chartType === 'advanced-pie-chart'"
class="chart-container"
[view]="view"
Expand All @@ -189,17 +189,17 @@ import './demo.scss';
(legendLabelClick)="onLegendLabelClick($event)"
[gradient]="gradient"
(select)="select($event)">
</advanced-pie-chart>
<pie-grid
</ngx-charts-advanced-pie-chart>
<ngx-charts-pie-grid
*ngIf="chartType === 'pie-grid'"
class="chart-container"
[view]="view"
[scheme]="colorScheme"
(legendLabelClick)="onLegendLabelClick($event)"
[results]="single"
(select)="select($event)">
</pie-grid>
<line-chart
</ngx-charts-pie-grid>
<ngx-charts-line-chart
*ngIf="chartType === 'line-chart'"
[view]="view"
class="chart-container"
Expand All @@ -220,8 +220,8 @@ import './demo.scss';
[showGridLines]="showGridLines"
[curve]="curve"
(select)="select($event)">
</line-chart>
<force-directed-graph
</ngx-charts-line-chart>
<ngx-charts-force-directed-graph
*ngIf="chartType === 'force-directed-graph'"
class="chart-container"
[legend]="showLegend"
Expand All @@ -231,8 +231,8 @@ import './demo.scss';
[scheme]="colorScheme"
[view]="view"
(select)="select($event)">
</force-directed-graph>
<area-chart
</ngx-charts-force-directed-graph>
<ngx-charts-area-chart
*ngIf="chartType === 'area-chart'"
class="chart-container"
[view]="view"
Expand All @@ -253,8 +253,8 @@ import './demo.scss';
[showGridLines]="showGridLines"
[curve]="curve"
(select)="select($event)">
</area-chart>
<area-chart-stacked
</ngx-charts-area-chart>
<ngx-charts-area-chart-stacked
*ngIf="chartType === 'area-chart-stacked'"
class="chart-container"
[view]="view"
Expand All @@ -274,8 +274,8 @@ import './demo.scss';
[showGridLines]="showGridLines"
[curve]="curve"
(select)="select($event)">
</area-chart-stacked>
<area-chart-normalized
</ngx-charts-area-chart-stacked>
<ngx-charts-area-chart-normalized
*ngIf="chartType === 'area-chart-normalized'"
class="chart-container"
[view]="view"
Expand All @@ -295,8 +295,8 @@ import './demo.scss';
[showGridLines]="showGridLines"
[curve]="curve"
(select)="select($event)">
</area-chart-normalized>
<heat-map
</ngx-charts-area-chart-normalized>
<ngx-charts-heat-map
*ngIf="chartType === 'heat-map'"
class="chart-container"
[view]="view"
Expand All @@ -312,26 +312,26 @@ import './demo.scss';
[xAxisLabel]="xAxisLabel"
[yAxisLabel]="yAxisLabel"
(select)="select($event)">
</heat-map>
<tree-map
</ngx-charts-heat-map>
<ngx-charts-tree-map
*ngIf="chartType === 'tree-map'"
class="chart-container"
[view]="view"
(legendLabelClick)="onLegendLabelClick($event)"
[scheme]="colorScheme"
[results]="single"
(select)="select($event)">
</tree-map>
<number-card
</ngx-charts-tree-map>
<ngx-charts-number-card
*ngIf="chartType === 'number-card'"
class="chart-container"
[view]="view"
(legendLabelClick)="onLegendLabelClick($event)"
[scheme]="colorScheme"
[results]="single"
(select)="select($event)">
</number-card>
<gauge
</ngx-charts-number-card>
<ngx-charts-gauge
*ngIf="chartType === 'gauge'"
class="chart-container"
[view]="view"
Expand All @@ -344,12 +344,12 @@ import './demo.scss';
[bigSegments]="gaugeLargeSegments"
[smallSegments]="gaugeSmallSegments"
(select)="select($event)">
</gauge>
</ngx-charts-gauge>
</div>
</div>
<div class="sidebar">
<h1>
ng2<strong>d3</strong>
Ngx-<strong>Charts</strong>
<small>Angular2 D3 Chart Framework</small>
</h1>
<div style="margin:20px">
Expand Down Expand Up @@ -566,7 +566,7 @@ import './demo.scss';
<input type="text" [(ngModel)]="gaugeUnits"><br />
</div>
</div>
<h3><a href="https://swimlane.gitbooks.io/ng2d3/content/" target="_blank">Documentation</a></h3>
<h3><a href="https://swimlane.gitbooks.io/ngx-charts/content/" target="_blank">Documentation</a></h3>
</div>
</div>
</main>
Expand Down
4 changes: 2 additions & 2 deletions demo/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';

import { AppComponent } from './app.component';
import { NG2D3Module } from "../src";
import { NgxChartsModule } from "../src";

@NgModule({
imports: [NG2D3Module, BrowserModule, FormsModule],
imports: [NgxChartsModule, BrowserModule, FormsModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
Expand Down
6 changes: 3 additions & 3 deletions demo/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<head>
<head>
<meta charset="utf-8">
<title>ng2d3 - Angular2 and D3js Charting Framework</title>
<title>ngx-charts - Angular2 and D3js Charting Framework</title>

<!-- Name of web application (only should be used if the website is used as an app) -->
<meta name="application-name" content="ng2d3">
<meta name="application-name" content="ngx-charts">

<!-- Short description of the page (limit to 150 characters) -->
<meta name="description" content="Angular2 and D3js Data Visualization JavaScript Framework for building composable, re-usable Charts in AngularJS." />
Expand Down Expand Up @@ -63,7 +63,7 @@
</head>
<body>
<div class="social-toolbox">
<a class="github-button" href="https://github.com/swimlane/ng2d3" data-style="mega" data-count-href="/swimlane/ng2d3/stargazers" data-count-api="/repos/swimlane/ng2d3#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star swimlane/ng2d3 on GitHub">Star</a>
<a class="github-button" href="https://github.com/swimlane/ngx-charts" data-style="mega" data-count-href="/swimlane/ngx-charts/stargazers" data-count-api="/repos/swimlane/ngx-charts#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star swimlane/ngx-charts on GitHub">Star</a>
<div class="addthis_inline_share_toolbox"></div>
</div>
<app>Loading...</app>
Expand Down
Loading

0 comments on commit d61529e

Please sign in to comment.