Category : charts

Build at: 2021-05-14T23:43:39.491Z – Hash: 9bd5fc57f8096f30771e – Time: 18132ms Error: node_modules/ng2-charts/lib/base-chart.directive.d.ts:33:12 – error TS2304: Cannot find name ‘Chart’. 33 chart: Chart; ~~~~~ Error: node_modules/ng2-charts/lib/base-chart.directive.d.ts:4:115 – error TS2305: Module '"../../chart.js/types/index.esm"' has no exported member 'PluginServiceRegistrationOptions '. 4 import { ChartConfiguration, ChartDataSets, ChartOptions, ChartPoint, ChartType, PluginServiceGlobalRegistration, PluginServiceRegistrationOptions } from 'chart.js'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ng2-charts/lib/base-chart.directive.d.ts:4:30 – error TS2724: ‘"../../chart.js/types/index.esm"’ ..

Read more

I have a chart on my application, but all the custom styles that I try to apply doesn’t change anything. Also, how can I add a tooltip on hover? This is what I have now: line-chart.component.ts import { Component, ElementRef, Input, OnChanges } from ‘@angular/core’; import * as d3 from ‘d3’; @Component({ selector: ‘app-line-chart’, templateUrl: ..

Read more

I have simple chartjs in angularjs, and I would show (20%) when hovering. HTML JS angular.module(‘chartDemo’, [‘chart.js’]) .config([‘ChartJsProvider’, function (ChartJsProvider) { // Configure all charts ChartJsProvider.setOptions({ //animation: false, //responsive: false }); }]) .controller(‘MainController’, MainController); function MainController($scope, $timeout) { var vm = this; vm.labels = ["Download Sales", "In-Store Sales", "Mail-Order Sales"]; vm.data = [30, 50, 20]; ..

Read more

I’m quite new with this library: https://www.grapecity.com/wijmo/demos/Chart/Overview/angular I’m attaching a stackblitz link with working example, what I already have: https://stackblitz.com/edit/angular-sbudgg I would like to create a chart which will be grouped by GROUPS: ‘Tom’, ‘Harry’, ‘John’. Each GROUP has some specific methods which I would like to present on the chart. I would like to ..

Read more

I’m quite new with this library: https://www.grapecity.com/wijmo/demos/Chart/Overview/angular I’m attaching a stackblitz link with working example, what I already have: https://stackblitz.com/edit/angular-sbudgg I would like to create a chart which will be grouped by GROUPS: ‘Tom’, ‘Harry’, ‘John’. Each GROUP has some specific methods which I would like to present on the chart. I would like to ..

Read more

I have simple chartjs in angularjs, and I would like override a few options like borderWidth, backgroundColor and so on … I’ve tried … HTML <div ng-app="chartDemo" ng-controller="MainController as mainCtrl"> <canvas id="doughnut" class="chart chart-doughnut" chart-data="mainCtrl.data" chart-labels="mainCtrl.labels" chart-options="mainCtrl.options" chart-dataset-override="mainCtrl.datasetOverride"> </canvas> </div> JS angular.module(‘chartDemo’, [‘chart.js’]) .config([‘ChartJsProvider’, function (ChartJsProvider) { // Configure all charts ChartJsProvider.setOptions({ //animation: false, //responsive: ..

Read more