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

how to create a vertical bar chart with rounded corners using angular 6? #5722

Closed
faribajpr opened this issue Sep 8, 2018 · 2 comments
Closed

Comments

@faribajpr
Copy link

i have a vertical bar chart in my angular 6 project but i don't know how to make the bars rounded! i used https://jsfiddle.net/uffo/5oty49r3/6/
but i get elements doen't exist on type chart!!!
here is my chart code:

`ngAfterViewInit() {

this.canvas = document.getElementById('barChart');
this.ctx = this.canvas.getContext('2d');
let myChart = new Chart(this.ctx, {
  type: 'bar',
  data: {
    labels: this.my_labels,
    datasets: [
      {
        label: '',
        fill: false,
        backgroundColor: [
          '#2699fb',
          '#2699fb',
          '#2699fb',
        ],
        borderWidth: 1,
        data: [12000, 18000, 65000],
      }
    ]
  },
  options: {
    responsive: false,
    legend: {
      display: false
  }
  }
});`
@simonbrunel
Copy link
Member

Duplicate of #5413 (rounded bar) and about Angular 6, please ask questions on StackOverflow: https://stackoverflow.com/questions/tagged/chart.js.

@cfoxy17
Copy link

cfoxy17 commented Apr 8, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants