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

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.

Related

How to display empty graph in Grafana even if there is no data

I'm using Grafana v9.1.8.
I created a panel bases on data from influxdb.
The data only sent when application is working, so sometimes there is no data.
And the dashboard will show just 'No Data' in the middile of the panel without any graph.
I'm trying to keep the graph(axis) shown even if there's no data, but I cannot find the solution.
As far as I know, there is no such feature on Grafana at the moment, but I found this solution:
https://community.grafana.com/t/what-to-show-when-the-panel-is-without-data/66524/9
Make a fake union, check if you have any data and if you don't create some random time data without other parameters. As they say in the answer, this may not be scalable, as you need to add extra lines for each query, but it may be a workaround.

Problem displaying geoserver's layer when resource is updated with rest API

I am having a weird issue when using geoserver api to update a netcdf resource of a coverage store layer. The resource is a netcdf containing one 3D (lon, ,lat, time) variable. However, the time dimension is only of length = 1. My code runs within a docker container and uses curl in a .sh file to run the api commands.
I must stress that the problem occurs only once in a while, maybe 10% of the time, maybe less.
When th problem occurs, the update of the store seems to have a problem and the layer cannot be displayed. When looking in the get Capabilities, one of the weird thing is that the time dimension is not right date, but is rather equal to 1970-01-01T00:00:00.000Z, which is the reference date used in the netcdf for the time dimension. Also, no problems are detected in the logs.
I do know that the problem is not with the file, and probably not with the upload of the file. Indeed, when the problem occurs, I can successfully create a store and a layer with the same resource and the same parameters as the layer that is not working.
I have tried multiple things via the API to solve this issue:
Reset the resource cache. It sometimes works, but not always
Delete layer and store and recreating them every time I need to update the resource
Delete resource, layer and store and recreating everything when resource update.
Nothing seems to get rid of the problem permanently. Has anyone experienced the same kind of behavior? It is not the first time I use geoserver’s api in a data harvester, but it is the first time I have this problem!
EDIT
I also tried to make the make the netcdf file as simple as I could, by removing the time dimension.
So now, the netcdf file only has 4 variables: lon, lat, the gridded variable, and a variable called crs that is of dimension 0, so is empty (I left it there for now since it comes from the outside source file).
But then again, the same kind of issue occurs, and again only once in a while. However, when it occurs, there seems to be something wrong caught in geoserver's log:
2022-06-08 16:01:28,267 WARN [operation.projection] - Possible use of "Popular Visualisation Pseudo Mercator" projection outside its valid area.
Longitude 2147483287°00.0'W is out of range (±180°).
But again, if when this happens, I can usually clear the resource cache and the layer will become visible again.
So I still dont know what is happening. Could it be the empty crs variable that sometimes creates problems?
Thanks a lot for your help!

How do we change the "precision:ms" setting in the Grafana Query Inspector?

I have an InfluxDB database with only x11 data points in it. These data are not displaying correctly (or at least as I would expect) in Grafana when the time between them is shorter than 1ms.
If I insert data points 1 ms apart, then everything works as expected and I see all x11 points at the correct times, as shown below.:
However, if I delete these points and upload new ones but this time one point per 100 μs, then although the data displays correctly in InfluxDB, in Grafana I see only two points in my graph:
It seems like the data is being rounded/binned to the nearest millisecond, an that this is related to the “precision=ms” setting in the query here:
but I cannot find any way to change this setting. What is the correct way to fix this?
You can't configure Grafana to support different time precision for the InfluxDB. It is hardcoded in the source code: https://github.com/grafana/grafana/blob/36fd746c5df1438f27aa33fc74b24be77debc7ff/public/app/plugins/datasource/influxdb/datasource.ts#L364 (It may need to be fixed in multiple places of the source, not only in this one.)
So the correct way to fix it is to code it, which is of course not in the scope of this question.

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

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

SSAS - Time Dimension Increasing Time Structure

I'm looking to increase the time dimension within a cube. Its currently set to Calendar end date 31/12/2012. Im looking to update it to end 31/12/2016. Currently using BIDS I've Increased the CalendarEndDate property in the dimension to '31/12/2016'. Saved it, processed the dimension, went to the browser and viewed the data but only shows up to Calendar 2012, no sign of 2013, 2014 ... etc.
Am I missing a step or is there anything else etc I must do before this will update?
Using SQL Server 2008R2. Dimension was set up prior to me taking ownership so unsure of how it was originally created but seems a pretty standard dimension with the source as the DSV.
Thanks
It sounds like the developer used "Generate a Time Table on the Server" (first page of Dimension Wizard) option originally as you have CalendarEndDate available. If that is the case, changing the CalendarEndDate, Processing the Dimension from Visual Studio (not SQL Server!) and browsing the Dimension should work. By processing from dimension inside Visual Studio, you will force the new definition to be deployed.
If you are still having problems, try creating a new time dimension inside a test project and deploying to see if you get the same issue. Compare the properties of both time dimensions to see if you can spot anything unusual.