-
Notifications
You must be signed in to change notification settings - Fork 77
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
Example for Stacked Bar Micro Chart in Table #35
Comments
Hi @pelicanny, you can refer to https://github.com/SAP-samples/fiori-elements-feature-showcase?tab=readme-ov-file#stacked-bar-micro-chart. For within tables it is essentially implemented the same way, just that a DataField would be used instead of a ReferenceFacet for including the chart, like: {
$Type : 'UI.DataFieldForAnnotation',
Target : 'chartEntities/@UI.Chart#stackedBarChart',
Label : 'Stacked bar',
}, |
Hi @schiwekM , thanks for the quick answer, still struggling with the table line specific reference though. When I try to reference my Charters entity in the DataFieldForAnnotation 's Target I get an editor error "Path does not exist.CDS (annotations)".
Resorted to this...
|
Hi @pelicanny, the path itself looks correct - can you restart VS Code and see if it still comes? Frankly the result of the stacked bar chart is kinda expected. It behaves this way since its introduction in 2020 that the values are not aggregated and you have to do the aggregation yourself within the view. But I agree that the behaviour is suboptimal and would encourage you to open an SAP Incident for Fiori elements v4, so this can be addressed. I'll check with the colleagues what is possible. BR, Marten |
Hi @schiwekM, unfortunately the Kind Regards :) |
Hello Fiori Team,
I'm struggling to find an example for how to use a Stacked Bar Micro Chart in a table line with Fiori Annotations.
Is there already an example existing? If not please help add one :)
Thank you and Kind Regards!
The text was updated successfully, but these errors were encountered: