SAPUI5 timeseries_stacked_column chart displaying empty weeks even though there's no data - sapui5

I'm creating the timeseries_stacked_column chart using SAPUI5 and the framework is plotting data for missing weeks even thought it's not fed to the chart. Please can anyone guide what's the best approach to avoid this.
Document link for chart property reference:
https://sapui5.hana.ondemand.com/docs/vizdocs/index.html#reference/chartProperty/Charts/Bar%20%20(15)/Stacked%20Column%20Chart%20for%20Date/Time%20Series/
Please see the screenshot below for the issue

Unfortunately the time series doesn't skip the intervals so the alternate solution to this was to use stacked_column chart with array of dimensions ["Year", "Week"] and plot accordingly.
Example: https://jsbin.com/nejefizuve/edit?html,output

Related

Using chart in ALP but it can't load data properly when the data comes more than 1000

Currently I'm using line chart in ALP, and I'm using time as x-axis, so when it comes with many data of time(>=1000 ) ,the chart loads data only in 130, and the more weird thing is that when I switch chart into some kind else ,like column chart, the data shown in the chart has changed to 180, and so on. In the same time, the data shown the table above loads correctly. I cannot find any issue or tip on the document or in the community.
P.S This issue happened only when the data(x-axis) reaches 1000 and more, 999 and the below are all aright.
My Ui5 version is 1.109.0, and using cap-node as backend.
I've try to change the version of UI5, but comes with no change.
I hope that you can tell me why this thing happens , and you can try to see the issue on local through a simple demo I found on the github https://github.wdf.sap.corp/PoC-LowCode-NoCode/alp_poc. Choose node as backend and add data to the my.bookshop-Books.csvfile(https://gist.github.com/OiverCai/aee8f7c75e382f0554d9746785ba45dd)
then rewrite the dimension in cat-service-ui.cds from title to ID(x-axis), then start the project and you can see the issue.

What is difeerence between those two tabs and why doughnut chart won't rerender itself from not hardcoded dataset?

I have a very strange problem with Doughnut chart from vue-chartjs.. when I'm getting my response from rest api and converting it to datasets which looks almost the same like hard coded datasets the chart won't rerender itself. It seems like data from resp is not identical but I tried to give him both datasets in 2 separate attempts. So when I give him my hardcoded dataset then doughnut rerender but In case of rest api datasets converted to normal arrays it won't.. I printed everything in console so please check if those 2 datasets are not the same, in my opinion they are the same...
Hardcoded dataset:
Data set from api after conversion:
I don't really know what is going wrong but yesterday I tired to resolve this for 7 hours looking for a lot of problem with re rendering this chart and finally it rerenders but only when I use hard coded dataset. Please help me if You have some ideas.
Solved. I tried to assign data to existing empty datasets when it should be done by creating new one with assigned data from response.

Dynamically add Crystal Report Header(s) and chart(s) based on a count

I am working on a Crystal Report that is utilizing the Multiple Pie Chart graph type to show some data on change of location. I have run into the situation where a record has 17 locations. I cannot seem to make the chart auto-grow, even though set to only display 2 pies per row, it is showing all 17 pie charts on a single page. This is way too dense. I think the answer would be to count the data-rows involved and dynamically insert a Report Header and single Pie Chart for each, but have no idea how to accomplish this in Crystal. I have spent quite a bit of time looking for information on this and come up with absolutely nothing. I'm pretty much a CR newb. Haven't worked with it since school, years ago. A push in the right direction would be greatly appreciated!

Time series graph that supports arbitrary date annotations?

I am making a time series line chart, currently using Google's standard Line Chart. The data consists of a set of dates and values for about a dozen different categories. There is no problem plotting this all to a chart.
What I'm running into is that I would like to overlay on the chart different milestones, what I'm looking for is some sort of annotation marker for a given date. The problem is there is no guarantee that the date of one of these milestones would necessarily land on the same date as one of the datapoints, and at least so far Google's Annotation Chart or adding annotations to the Line Chart all seem to require that the annotation be added as an optional text to a preexisting data point.
I started playing with Rickshaw since some of the tutorials made it look like it supported arbitrary annotation points, but it seems like it's a bit of work to get it to look as nice as the Google charts do out of the box.
Is there a way or hack or something to add annotations to the Google Annotation Chart if the annotation date doesn't match to the date of an existing data point? Or is there some other charting library that would more easily handle this?
With the LineCharts, you can annotate the axis values by adding an 'annotation' role column immediate after the domain (axis) column. You can add one or more rows to your DataTable that contain annotations on specific dates, even if those dates don't have any data at other points - just set those other columns to null.

GWT with Visualization: link two visualizations to the same data

I have a BarChart and Table on the same data.
I want to link these two visualizations such that if I sort the table column by a mouse click on one of the columns, it would reflect in the bar chart.
I found one example for the Visualization api:
http://code.google.com/apis/chart/interactive/docs/examples.html
But the sort method is not avaiable for com.google.gwt.visualization.client.DataTable.
How can I do it?
The google-gwt-apis haven't been updated for a long time and don't support the latest gogole chart features.
However you can extend DataTable and use JSNI to implement the sorting and unsupported functions yourself.
Refer to the DataTable.java and the google chart tools for more information.