mariusmuntean / ChartJs.Blazor

Brings Chart.js charts to Blazor
https://www.iheartblazor.com/
MIT License
676 stars 151 forks source link

How to display chart in table cell? #137

Closed win32nipuh closed 3 years ago

win32nipuh commented 3 years ago

Is it possible to create and display pie chart or other in a table cell ? How to do it?

I mean like in this Blazor-ApexCharts sample

Joelius300 commented 3 years ago

What is this Blazor-ApexCharts sample? Can you show us a screenshot?
Also, what have you tried? Did you try multiple things? Show us the code you tried.

SeppPenner commented 3 years ago

@Joelius300 I assume this project https://github.com/joadan/Blazor-ApexCharts, but I have also no idea what the question is about 😅

ZedZipDev commented 3 years ago

It is about this example: run the Demo and go to Sparklines:

https://joadan.github.io/Blazor-ApexCharts/sparklines

Joelius300 commented 3 years ago

What have you tried? I don't know what issues you'd run into if you tried to just do it like you would naturally (put the component inside a table).

Btw. I don't know your use case but for smaller things like the example you showed, I think SVG (used by ApexCharts) is better suited than the html canvas (used by Chart.js).

Joelius300 commented 3 years ago

Not sure if your issue was solved but I'm closing this due to inactivity. Please respond if this issue should be reopened.