rinminase / ng-charts Goto Github PK
View Code? Open in Web Editor NEW🎨📉 A fully functional Angular 14+ Chart.js library based from ng2-charts
Home Page: http://ng-charts.netlify.app
License: MIT License
🎨📉 A fully functional Angular 14+ Chart.js library based from ng2-charts
Home Page: http://ng-charts.netlify.app
License: MIT License
A radar chart to be rendered
Blank space
Something to do with ionic?
If you provide an array of colours to be used, only the first item is used and colours all segments/lines with that colour.
Each segment should have the defined colour from the array
Currently all segments get the same colour
A slight modification to one of the examples in the readme demonstrates the issue. Three colours given in the array, #f00, #0f0, #00f. The pie chart is then renders with all segments set as #f00
I am trying to use this library for angular version 13.2.0.
When I try to import ChartsModule from your framework, it gives an error but NgChartsModule works. Can you please create a stackbliz example using this NgChartsModule? I am suing chartjs v3.5+
public chartColor: DatasetColor[] = [
{
backgroundColor: 'rgba(0,0,0,0)',
borderColor: '#2196f3',
borderWidth: 1,
pointBorderColor: 'orange',
hoverBackgroundColor: 'green'
},
];
public chartType: ChartType = 'line';
public options: ChartOptions = {
responsive: true,
legend: {
display: false,
},
tooltips: {
bodyFontColor: 'black',
callbacks: {
label: function (tooltipItem) {
debugger;
return '$' + Number(tooltipItem.yLabel) + ' and so worth it !';
},
},
enabled: true,
},
scales: {
xAxes: [
{
display: false,
},
],
},
};
"@rinminase/ng-charts": "^4.2.1",
Not error
import * as i0 from "@angular/core";
import * as i1 from "./base-chart.directive";
export declare class ChartsModule {
static ɵfac: i0.ɵɵFactoryDeclaration<ChartsModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<ChartsModule, [typeof i1.BaseChartDirective], never, [typeof i1.BaseChartDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration;
}
static ɵprov: i0.ɵɵInjectableDeclaration;
Hello! I'm using Angular 9 and receive this error when I try to import this library. Can you please help me?
Also, the link for Pie Chart that you recommend is: Pie Chart that imports chart.js in his project for setting ChartType and ChartOptions. Should I import chart.js as well? Thanks
**
ERROR in node_modules/@rinminase/ng-charts/lib/charts.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
This likely means that the library (@rinminase/ng-charts) which declares ChartsModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
**
Two problems:
I followed your line example
Hi,
MomentJS package depreacted one of methods and I get a warning in browser.
Please fix it - change creating proper date using moment package.
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Momentjs deprecated one of method
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.