Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ng2-charts-x
Advanced tools
Readme
Beautiful charts for Angular2 based on Chart.js
This is a fork of ng2-charts from valor-software that fixes some bugs which were not addressed in the original for a long time.
Currently only the original demo that is using ng2-charts is available.
Sample in below website uses ng2-charts@1.1.0
http://valor-software.github.io/ng2-charts/ http://plnkr.co/edit/7fGsiuRjcF0M0Ffeoml2?p=preview
npm install ng2-charts-x --save
import { ChartsModule } from 'ng2-charts-x';
// In your App's module:
imports: [
ChartsModule
]
There are one directive for all chart types: base-chart
, and there are 6 types of charts: , line
, bar
, radar
, pie
, polarArea
, doughnut
.
Note: For more information about possible options please refer to original chart.js documentation
data
(Array<number[]> | number[]
) - set of points of the chart, it should be Array<number[]>
only for line
, bar
and radar
, otherwise number[]
;datasets
(Array<{data: Array<number[]> | number[], label: string}>
) - data
see about, the label
for the dataset which appears in the legend and tooltipslabels
(?Array<any>
) - x axis labels. It's necessary for charts: line
, bar
and radar
. And just labels (on hover) for charts: polarArea
, pie
and doughnut
chartType
(?string
) - indicates the type of charts, it can be: line
, bar
, radar
, pie
, polarArea
, doughnut
options
(?any
) - chart options (as from Chart.js documentation)colors
(?Array<any>
) - data colors, will use default and|or random colors if not specified (see below)legend
: (?boolean=false
) - if true show legend below the chart, otherwise not be shownchartClick
: fires when click on a chart has occurred, returns information regarding active points and labelschartHover
: fires when mousemove (hover) on a chart has occurred, returns information regarding active points and labelsThere are a set several default colors. Colors can be replaced using the colors
attribute. If there is more data than colors, colors are generated randomly.
Please follow this guidelines when reporting bugs and feature requests:
The MIT License (see the LICENSE file for the full text)
FAQs
Reactive, responsive, beautiful charts for Angular2 based on Chart.js
The npm package ng2-charts-x receives a total of 184 weekly downloads. As such, ng2-charts-x popularity was classified as not popular.
We found that ng2-charts-x demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.