I have to implement the scatter graph which have to contain the time, date, month, year acc to the segment clicked. The dta for this is to be getting from database of sqlite. Can anyone have it.
Thanks
Look at the example apps included with Core Plot. The Plot Gallery and DatePlot examples both show how to plot date values.
Related
I am working with a dataset with which I am creating a dashboard. My dataset is very simple, a first column of [yyyy-mm-dd-hh-mm], and a second column with many values.
I read in many threads and forum about the difficulty to plot dates on x-axis (including hours and minuts).
As reference I am using this dashboard built in PowerBi https://www.terna.it/it/sistema-elettrico/transparency-report/total-load .(Public data of Italian electric energy generation)
This is exactly the outcome I would like to obtain, but by now I cannot display the hours and minuts. I used their data to reproduce the dashboard.
I tried to switch from a "dates" x-axis to a "text" x-axis, but the result is not the same, and furthermore the plot does not occupy the whole page but I have to move to the right.
enter image description here
I really cannot understand how the linked dashboard was built.
Any idea?
I guess your problem is that you have been using Date Hierarchy on the x-Axis you instead of Date only.
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.
I'm used to using Tableau (similar to powerBI), and I'm now testing powerBI as well. I've been trying to receate a plot from Tableau, but I'm unable to do it (see the images).
Now I realize that this probably has a very simple solution, and I understand the general problem with how the data is aggregated together, but I'm just not able to find the solution on my own. What sort of buttons should I push in PowerBI to make this work?
Thanks for any help!
Tableau plot
PowerBI plot
In the Tableau plot, you're putting the Date at Day level on the x-axis. In the PowerBI plot, you've the Date at Year level at the the x-axis. That's why all points are displayed exactly on a year.
You should put the Day at Day level on the x-axis in the PowerBI plot, just like the Tableau plot. You can do this by dragging the date column in the X Axis field, and remove the Year, Quarter and Month level. The only remaining level will be Day.
Edit:
Or don't display the hierarchy, and display the date field:
Change the Date field from "Date Hierarchy" to plain "Date"
Power BI treats dates as hierarchies by default - this is useful for drilling (e.g. see the "big picture" of year-over-year performance, and than drill down to month or day resolution) in interactive reports, but less so when you just need a quick summary.
You can change this using the dropdown button next to the "date" field in the visual's field-well. Just choose "Date" instead of "Date Hierarchy":
For comparison, this is the same visual with date as date hierarchy:
There are some additional details in this 5 Minutes BI blog post.
I have search this question but didnt find any answer that help me. i have tried [graph reloadData] but didnt help me.
I m using this link to make Scatter plot graph for my project
But i m making just 1 scatter graph not 3.
i have 3 options in settings 1)today 2)month 3)year
in today it shows todays graph just 1 plot
in month it shows 30 plot and 365 in year.
but in my case it works ony first time but when i go back and change option from today to year it.
Sorry everyone. it wasnt about refreshing graph. i had an array of dates and it was static. so it changes once when the date was selected like today or month. and then when i select option again that static array had the previous values not new.
Google offers a charting / graphing API and has a graph that I would like to use to present change over time, and the graph / chart is called the "Annotated Timeline", and an example of it is here:
Picture.png http://img198.imageshack.us/img198/1160/pictureea.png
The coolest feature is that you don't have to plot out all the same "x coordinate" points with each y value, so the data points don't have to all line up vertically. This is good because I don't have values for all points at every time interval:
Picture 1.png http://img843.imageshack.us/img843/5814/picture1ye.png
This would be the end of my needs except that I can't print this out without taking a screenshot of it because this particular Google Visualization is flash based.
What tool can I use to plot data with different x values for the y data points that is HTML5 compatible / not flash?
ps: Google also offers the line chart api but I don't believe it offers x axis points which are not parallel.
You can do this with amCharts. Here is an example of date-based chart which looks quite similar to google charts: http://amcharts.com/stock/events/
Another one with multiple lines: http://amcharts.com/javascript/line-chart-with-multiple-value-axes/
This example has data points at the same dates, however the chart can display data like you need too. The data provider should include all the dates you have, but it's not necessary that the data item should have values for all the graphs. Here is sample data:
{date: new Date(2010,1,2), graph1:54, graph2:2},
{date: new Date(2010,1,3), graph1:53},
{date: new Date(2010,1,4), graph1:55},
{date: new Date(2010,1,5), graph2:2}
I hope this helps.
Antanas (author of amCharts)
Highcharts also has an irregular time data example which can do this:
charts.png http://img269.imageshack.us/img269/8963/chartsf.png