Back syncfusion chart drawing when scrolling - flutter

Good day. Faced the problem with the back drawing of the graph using syncfusion_flutter_charts (if necessary). If I need to build the values ​​in front, then there is no problem:
chartSeriesController?.updateDataSource(addedIndexes: [...]);
But how to do it behind? The point is that my data is a date:value pair (x: date, y: value). And I display only the latest data, for example 7 days, 30 days. But if the user wants to see the previous results, then he need to scroll to the left and be able to see the previous days and their values ​​with the same detail (7, 30 days). As far as I understand, I'm satisfied with two solutions, displaying all the data at once, but from a certain index and the number of days at a time with the ability to scroll left and right, and gradual rendering, for instance the user will move with +1 & -1 value. It is also important that the detailing of the chart is chosen not by movements on the chart, but in the menu (I have it implemented). Thanks for your suggestions.

Related

Time Stack Chart with years as horizontal axis

I want to add a stacked chart but could not find a way to customize the time-axis.
Currently my x-axis refers to days, however, I search for a way to display years. Since I want a stacked chart that changes over time, I believe I need to use the 'Time Stack Chart' (see screenshot). I would also be happy with simply several stacked bars next to each other (each bar represents one year), but the 'Bar Chart' only supports one bar (I believe).
My model collects data from different sources on the last day of the year and then my chart should display this value for the year, categorized by source. I have tried with different data sets, both where the time is the horizontal value and where it is not.
When I use a dataset where one value is 'Years' (through the getYear() function) this works fine for plots, but not when I want to have a stacked chart (which by default depends on the time).
Is there a solution to this?
Please let me know if you need further information!
You need to go to the appearance part, time axis format, set it to yyyy. Also in the scale section, you need to change model time units to years.

I need to sign every week on a diagram in my Power BI report

I've created a bar chart where I have values on axis Y and weeks on axis X. I want to sign every week on this chart. The problem is that I have weeks with no data and I still want to show this blank weeks. But I can't make it to start from first week,it automatically start from first not blank week.I tried to play with continuous and categorical type of data on axis X but it didn't help. I've already chosen option "show elements without data". But it still doesn't look like a want.
For best understanding I'll show you what I have and desired result.
Now it looks
this way and this way
But I want that it look
this way
Thank you for any useful tips.

Swift Linechart for timeline

I am planning to do a linechart, which should represent price changes based on a week, a month and so on. Therefore, I use the cocoapod "Charts" (github.com/danielgindi/Charts).
I always have the price changes for a certain point in time. I am wondering now how I could create the chart, that the x-line is showing the values according to the accurate time - and not the same distance for each value, even when two values are on the same day, and the next one 3 days after.
At the moment, it looks like this:
This should then help to insert a marker, where the user can move through the days/months, and see what the price was for each point in time.
Does anybody of you has an idea? I thought about adding values for each half hour to the dataset, with dummy values, to receive the same result, but this doesn't seem like a perfect solution..
Thanks a lot,
Alex

Special kind of bar chart

So, I have a kind of "customized bar chart" here. Forgive my lack of drawing skills, I just slapped this together in MS Paint.
The idea is that we have a patient who is on a certain medication. The chart has the following attributes:
Each black line represents a visit date (so, the horizontal axis is a date series).
The chart should have a unique indicator for start date, end date, and when the patient paused and resumed taking the medication.
Each visit date (black line) should have a dosage amount attached to it. This does not have to be a symbol, it can be a value (e.g., 2400mg, 4800, etc).
It's sort of a cross between a Gantt chart and a bar chart, but is neither of the two specifically. There are start and end dates, with a bar-like representation across a time period, but there could be potential gaps between pause and resume dates as well.
Is a chart like this even possible in BIRT, or does it require advanced customization?
Let me know if you need anything clarified.
What you should be able to do is build a table for each medication, where the columns are the doses, and dynamically change the width of the columns. Some quick research indicates adjusting the column width in a table can be challenging but here is question about doing it to a crosstab
The easiest way might be to leave the column widths floating, and add characters (same color as background so they don't display). The characters are added based on time between visits and will cause the column widths to change accordingly. You can use highlights to change the background code based on JavaScript.
You may want to have a look at d3. It enables highly customizable chart.
For example, https://vida.io/documents/ZCzewTza4ZSzMWSBG.
BIRT 4.3 has support for D3.

Can I develop Sliding Dashboard Using SSRS 2008

I need to develop a dashboard that will be displayed in a flat screen hanging from the wall. Not on a PC (of course, behind the cabinet or something there is a PC, but I mean, without any user involvement).
But the info to display does not fit a single screen, so I need to have 4-5 screens sliding / rotating with the info.
Is that something that can be done using SSRS 2008?
If yes, how?
If not, do you have good free/low-cost suggestions?
Thanks.
Create the 4/5 'screens' within their own Rectangle in the one report
Set the AutoRefresh property of the report to x number of seconds you want for the rotation to occur.
Based on the AutoRefresh length you have set, set the visibility of the various rectangles based on a formula.
Example
Set AutoRefresh to 15 seconds
We will assume you have 4 rectangles/'slides'
Therefore, each slide will be shown once every minute
We set the visibility of each rectangle independently using an IIf() function and testing the current time with the Now() function
Rectangle 1
=IIf(Second(Now()) < 15, False, True) the rectangle will show if the AutoRefresh occured during the first 15 second block of the current minute, all other times during that minute it will be hidden.
Rectangle 2
=IIf(Second(Now()) >= 15 AND Second(Now()) < 30, False, True) the rectangle will show if the AutoRefresh occurred during the second 15 second block of the current minute, all other times during that minute it will be hidden.
Rectangle 3
=IIf(Second(Now()) >= 30 AND Second(Now()) < 45, False, True) the rectangle will show if the AutoRefresh occurred during the third 15 second block of the current minute, all other times during that minute it will be hidden.
Rectangle 4
=IIf(Second(Now()) >= 45, False, True) the rectangle will show if the AutoRefresh occurred during the fourth 15 second block of the current minute, all other times during that minute it will be hidden.
Other combinations can be done for the IIf() looking at the current Minute() or current Hour(). The Mod() function could also be used to show things every say 5 minutes as well.
I don't think you can do this in SSRS 2008 on it's own. However you could simply render you report pages as images and then use a free slideshow tool (picasa is good but there are lots available) to play a slide show of the images.
Alternatively you could put together a webpage to rotate the images but I'm taking the easiest, least technical route here.
If the data needs to be 'live' then you could create a subscription to run the report(s) every xx number of minutes or whatever you need. Set the output type to TIFF and use a windows file share as the delivery method. You can also get it to overwrite existing files, so you'll end up having 4 or 5 images being overwritten every xx number of minutes.
Of course there are much more elegant ways of doing this but if you want to use SSRS and want it cheap and cheerful then this is at least an option.
Good luck!
Al.