Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use this plugin with angular-chart.js #1

Open
imsamdez opened this issue Nov 30, 2017 · 5 comments
Open

Use this plugin with angular-chart.js #1

imsamdez opened this issue Nov 30, 2017 · 5 comments

Comments

@imsamdez
Copy link

Hi,

I'm discovering angular and I'll be interesting in using your plugin with angular-chart.js.

Is there any ways to do this ? I'm a bit lost even after looking at some other plugin integrations.

Help is much appreciate !

@mykola-digtiar
Copy link
Owner

Hi, of course it is possible to use the plugin with angular-chart.js
I will provide more information about it in 2-3 days.

@RichardFans
Copy link

RichardFans commented Dec 6, 2017

javascript:

vm.options =  {
                    tooltips: {
                        enabled: false
                    },
                    zoomOutPercentage: 68,
                    plugins: {
                        outlabels: {
                            stretch: 18,
                            lineWidth: 1,
                            font: {
                                resizable: false,
                                size: 10
                            }
                        }

                    }
                };

html:

<canvas id="wholeChartPie" class="chart-base"
                    chart-options="vm.options"
                    chart-type="'outlabeledPie'"
                    chart-data="vm.chartData" chart-labels="vm.chartLabels" chart-series="vm.chartSeries">
</canvas>

@jdlopezq
Copy link

Hi I'm tryin to get this work in angular 5, when i put this 'outlabeledPie' in chart-type, i get this error: Error: "outlabeledPie'" is not a chart type. And if i put it in the ts file the charts are render but only in gray scale, and whe i use the chart-type "pie" the labels always are out of the container, maybe you can help me pls :)

@Cristianopavan
Copy link

by any chance is that work with chart-funnel -js plugin thanks in advance

@Ahsan9981
Copy link

Ahsan9981 commented Feb 3, 2022

Is there any plugin for polar chart in chart.js for Angular ? Currently I am using datalabels plugin for this and this does not have anything to make the labels to stay outside polar chart rings and they move with the amount of data section displayed.
image_2022_02_03T07_21_58_077Z
I want these datalabels outside of these rings at fixed positions.
Here is my code.

plugins: {
      datalabels: {
         color: '#000000',
         anchor: 'end',
         align: 'end',
         padding: 150,
         display: true,
         font: {
           weight: 'bolder'
         },
         formatter: function(value, ctx) {
          return `${ctx.chart.data.labels[ctx.dataIndex]} - ${value} %`;
       },
      },
    },

harlamenko pushed a commit to harlamenko/chartjs-plugin-piechart-outlabels that referenced this issue Aug 8, 2024
…ed-visuals

Handling v3 and cleaning the visuals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants