MudBlazor icon indicating copy to clipboard operation
MudBlazor copied to clipboard

New MudCharts

Open Garderoben opened this issue 3 years ago • 15 comments

Combined all feature requests for charts so its easier for me and benno to keep track on them. I have just added what is requested below, benno have already added allot of new functionality and more will come.

General

  • [x] Tooltip when hovering over line graph "dot" or donut/pie/bar section request

Donutchart

  • [ ] Half displayed, start/end angle request

Piechart

  • [ ] Half displayed, start/end angle request

Barchart

Linechart

  • [ ] Define Y Axis start and end values request
  • [ ] Dual Y Axis request
  • [ ] Logarithmic scales request
  • [ ] Area Line chart, separate component? request

Garderoben avatar Aug 12 '21 12:08 Garderoben

I think charts should be a separate project. Charts are a huge topic and usually when I have to chart something for a customer, he asks me customizations that at the end only with D3.js I can fullfill. So in the design of a web app, charts are not a priority.

GioviQ avatar Aug 13 '21 07:08 GioviQ

While you are looking into this...

  1. It might be good to have a mechanism to clear the SelectedIndex on the Charts... As a quick fix, there could be a couple of options...

    1. Add an else condition here to set _selectedIndex = -1 (basically if value == _selectedIndex)
    2. Or at least remove this check so developers can check it for themselves and reset the index if the current/latest index is same as the previous...
  2. Also, SelectedIndexChanged should also send the chart-in-context as the parameter alongside the index. Useful when creating dynamic charts in a loop (to identify which chart fired the event)

vamsitp avatar Aug 25 '21 12:08 vamsitp

First off, thanks for taking on these enhancements. Has there been any consideration to putting these features into a separate NuGet? I can see these changes potentially having a significant impact on the library size.

Separately, has work been paused on this due to dotnet 6?

illbredmiscreant avatar Nov 15 '21 14:11 illbredmiscreant

One thing that would be nice is to have a stacking option for barchart. So that BarChart values stack on top of each other, rather than side by side.

amoeban avatar Mar 30 '22 21:03 amoeban

Any progress on this. I'm facing the limitations of the current chart implementations.

pmeems avatar Jun 23 '22 13:06 pmeems

#3944 - DateTime axis, handling data in a time series

radderz avatar Aug 03 '22 05:08 radderz

For me both Y-axis features would be hugely valuable ! As far as I can tell, negative values are not supported on a Y-axis ?

nickmmain avatar Aug 25 '22 15:08 nickmmain

Is this dead? 😢

Jacko1394 avatar Nov 03 '22 00:11 Jacko1394

@nickmmain indeed. I "extended" (the way the charts are written is weird; they exhibit inheritance but don't use it) line chart to allow negative values but it was a massive headache and I practically ended up writing a new line chart component..

CaiusJard avatar Nov 07 '22 13:11 CaiusJard

I see in the post that " Tooltip when hovering over line graph "dot" or donut/pie/bar section" Is checked is there any news about this enhancement ? Or any workaround ?

Tarru avatar Mar 31 '23 09:03 Tarru

Any update on this task? or somehow can we add text on top of chart something like this: image

nishantdrei avatar Aug 18 '23 08:08 nishantdrei

It would be really nice to be able to show the percentage or total within the ranges in the chart out of the box. like any other reasonable pie chart.

novacema avatar Aug 18 '23 08:08 novacema

The chart is just an SVG and mudblazor is open source - feel free to download the code and tweak it to add labels. Maybe even make a PR for it, help MB team out :)

ChairmanMawh avatar Aug 18 '23 08:08 ChairmanMawh

Does the new Version support icons for a x / y point to display buy / sell signals?

endeffects avatar Oct 21 '23 18:10 endeffects