MudBlazor
MudBlazor copied to clipboard
New MudCharts
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
- [ ] Horizontal Barchart request
Linechart
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.
While you are looking into this...
-
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...- Add an else condition here to set
_selectedIndex = -1
(basically ifvalue == _selectedIndex
) - 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...
- Add an else condition here to set
-
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)
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?
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.
Any progress on this. I'm facing the limitations of the current chart implementations.
#3944 - DateTime axis, handling data in a time series
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 ?
Is this dead? 😢
@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..
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 ?
Any update on this task? or somehow can we add text on top of chart something like this:
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.
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 :)
Does the new Version support icons for a x / y point to display buy / sell signals?