angular2-highcharts

Angular2-Highcharts: Pie chart size based on the width of the panel

久未见 提交于 2019-12-02 10:50:01
问题 I have created a Pie chart and I am placing this Pie chart inside a panel. My panel width can be 600 or 400 depending on the user settings. When the size is 600 Pie and the legend is displayed properly. But when it is 400, the legend is displayed outside of the panel. Is there a way to reduce the size of the pie in that case, also the legend can be displayed at the bottom if the size is not sufficient. My plnkr https://plnkr.co/edit/yzXLz7AIDoWa1Pzxxl4k?p=preview My plot options plotOptions:

Angular2-Highcharts: Pie chart size based on the width of the panel

∥☆過路亽.° 提交于 2019-12-02 03:53:10
I have created a Pie chart and I am placing this Pie chart inside a panel. My panel width can be 600 or 400 depending on the user settings. When the size is 600 Pie and the legend is displayed properly. But when it is 400, the legend is displayed outside of the panel. Is there a way to reduce the size of the pie in that case, also the legend can be displayed at the bottom if the size is not sufficient. My plnkr https://plnkr.co/edit/yzXLz7AIDoWa1Pzxxl4k?p=preview My plot options plotOptions: { pie: { innerSize: 120, allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: false },

Call an angular component method when we click on highchart series

耗尽温柔 提交于 2019-11-30 17:17:41
问题 I use angular2-highcharts and I want to call a component method in a local function but I don't know how it could be possible. Could you help me ? A plunker example : http://plnkr.co/edit/gOLGytp9PZXiXvv2wv1t?p=preview import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { NgModule, Component } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { ChartModule } from 'angular2-highcharts'; @Component({ selector: 'my-app', styles

How to import highcharts-more

别来无恙 提交于 2019-11-29 10:50:50
I would like to use the spiderweb chart from highcharts, which requires me to import highcharts-more, but I cannot figure out how to do that. Currently, this is how I've added highcharts to my project, from app.module.ts : import { ChartModule } from 'angular2-highcharts'; import { HighchartsStatic } from 'angular2-highcharts/dist/HighchartsService'; import * as Highcharts from 'highcharts/highstock'; imports: [ ChartModule ] providers: [{ provide: HighchartsStatic, useValue: Highcharts }], When I try to import it like this: import * as HighchartsMore from 'highcharts/highcharts-more'; I get

Angular 2 - AOT - Calling function 'ChartModule', function calls not supported

纵然是瞬间 提交于 2019-11-29 04:03:11
I am losing my mind and hair over this. I am importing HighCharts in Angular 2 but need to require some of its extra libraries. So far in my code I have import {ChartModule} from 'angular2-highcharts'; @NgModule({ .... imports:[ ChartModule.forRoot(require('highcharts'), require('highcharts/modules/drilldown'))}) ] But I keep getting this error ERROR in Error encountered resolving symbol values statically. Calling function 'ChartModule'. function calls are not supported. Consider replacing the function or lambda with a reference to an exported fucntion. So I tried export function

How to import highcharts-more

℡╲_俬逩灬. 提交于 2019-11-28 04:23:33
问题 I would like to use the spiderweb chart from highcharts, which requires me to import highcharts-more, but I cannot figure out how to do that. Currently, this is how I've added highcharts to my project, from app.module.ts : import { ChartModule } from 'angular2-highcharts'; import { HighchartsStatic } from 'angular2-highcharts/dist/HighchartsService'; import * as Highcharts from 'highcharts/highstock'; imports: [ ChartModule ] providers: [{ provide: HighchartsStatic, useValue: Highcharts }],

Angular 2 - AOT - Calling function 'ChartModule', function calls not supported

不想你离开。 提交于 2019-11-27 18:01:34
问题 I am losing my mind and hair over this. I am importing HighCharts in Angular 2 but need to require some of its extra libraries. So far in my code I have import {ChartModule} from 'angular2-highcharts'; @NgModule({ .... imports:[ ChartModule.forRoot(require('highcharts'), require('highcharts/modules/drilldown'))}) ] But I keep getting this error ERROR in Error encountered resolving symbol values statically. Calling function 'ChartModule'. function calls are not supported. Consider replacing