How to align the xGrid lines with data points? - anychart

I have this chart: https://playground.anychart.com/5dBO9eg9/1
I would like the xGrid lines to start where the dates (2018-04-01, 2018-05-01, ...) are, so that they intersect the points on the chart.
Anybody has an idea on how to do this?

To achieve that, you need to use a DateTime scale instead of an ordinal one. And then to set the ticks interval as one month to show all the dates. Please find the playground sample in the comment below.

Related

How to zoom in on a google data studio line chart

so this chart represents my p/l during a day! X axis is created using a timestamp column and Y axis is created using a p/l column in google sheets. Now, how do I remove the blank space from 12am to 6pm. This chart represents my p/l during a day when Im trading stocks.! I only trade from 7pm to 10pm hence I don't want every single hour of the day!
I got the desired output by applying a timestamp filter but it could only be used for a specific date! Is there any way to zoom in on the blue part? or any filter to hide specific hours?
I'd grateful if you guys could help!
if you're using Time Series chart, you can go to Style-> find x-axis part-> under Range you can click the dropdown and select Range by Data.
Hope it helps!

Excel IF Function Query - Dates

I am looking for some help regarding an IF function on an Excel document.
Basically if the Date Listed cell is dated over 1 month ago (eg: Date Listed 6-Aug but today is 6-Sep) and the Date Sold cell is blank, then I would like the Mark Down cell to say 'MARK DOWN', which at the moment it does but it is only 10-Aug today.
If the Date Listed cell and the Date Sold cell both contain dates I would like the Mark Down cell to say 'OK'.
So far I have this written:
=IF(AND(DATE(YEAR(G2),MONTH(G2),DAY(G2)), ISBLANK(H2)),"MARK DOWN","OK")
I know I'm not far off but I need help sorting out the last parts..
Bonus if you can help me add a highlighted cell formatting to it :)!
[EXAMPLE IMAGE]
I think this should work
IF(AND((TODAY()-g2)>31,ISBLANK(H2)),"Mark Down","OK")
Apply conditional formatting on all the cells in MARK DOWN column which are equal to OK.
After that write this simple formula to check the condition.
=IF(AND(ISNUMBER(G2),ISNUMBER(H2)),"OK","MARK DOWN")
Update: if you use EDATE function everything gets simplified as this function takes care of exact day differences
so the whole solution is :
=IF(AND(EDATE((G2),1)=EDATE(NOW(),0),ISBLANK(H2)),"MarkDown","")
Let me know if you have any question on how this formula works.

SSRS plot value of DataSet multiple times

I have a table of data like so.
I would like to plot it on the same graph. I managed to get it to plot when putting it in a table that sorts on category "GreenTemp1", but what I would like is to plot it together on the same chart. Can anyone help me?
Edit:
I would like it to plot it like this but it does not show anything.
Add a separate series for each of the DeviceNames. The value expression for each series can be along the lines of:
=iif(Fields!DeviceName.Value = "GreenTemp1", sum(Fields!Value.Value), Nothing)
Obviously change the number for each series. Give each series its own legend name as well, and remove the category group for DeviceName.

How to display only few intervals in x-axis while having more data using line jfreechart

I created a linechart using jfreechart and my dataset is as follows...
Date d = s.getUpdateDate();
String date = DATE_FORMAT.format(d);
lineDataset.addValue(s.getCount(), s.getAutomationName(), date);
I got a chart with count values and wrt grouping of date and automationName.
I want to display data for 365 days(which means 365 dates) in X-axis and in that case once the chart is generated i dont want all the dates to be displayed in the X-axis. In that case i need only 12 intervals to be displayed one for each month.
I need the interval to get modified so that all dates should not be displayed in x-axis.
Looking forward for your suggestions :)
Thanks in advance
I have domain axis intervals for all 365 days. It is not possible all of them in the chart. So I wanted to display only few intervals like 1 per month resulting in 12 intervals displaying in domain axis.
I came to know about timeseries chart and it automatically does it based upon chart width.
Thanks moeTi.

Reporting Services Chart - Hard Coded Series

I am developing an SSRS 2008 report which contains a number of simple charts. On the x axis I have the 12 months of this year - Jan 2009 thru December 2009. On the Y is an integer value ranging from 0 to 100 in increments of 10. I am plotting the number of times an issue occurred per month. So January could have a value of 10, February 30, etc. etc.
I would like to have a horizontal line/series that is constant and shows the yearly average for 2008. So, say the average was 30 issues per month in 2008, I would like for that line to be shown in my chart. Basically, I want to draw a straight line across the chart for that value... I can see how to add more complex series, but this seemingly simple task is getting the better of me.
Doe anyone have any idea how this could be accomplished?
Thanks in advance,
Jason
[Update] To add some further details, I am already pulling the average for each row in my dataset and have it set up as its own series. However, rather than plotting a line, this approach plots individual points for each month. While this is close to what I want, I need to join the dots so to speak. The chart is of the Error Bar (Range) variety.
Can you use a column / line hybrid chart? If so then add a constant or dynamic target value to the chart:
Design the chart.
On the Data tab in the Chart Properties dialog box, add a new data value (for example, Target).
Set the target value (see the example in Figure 9 on link this uses a constant target value of 100000 across all categories but you can do it dynamically too). Make sure to use an expression starting with = (equals). Otherwise, the value is not interpreted as a numeric value.
See the example on the MS charts page at http://msdn.microsoft.com/en-us/library/aa964128.aspx
Add the yearly average to each row in the underlying the query. Add data series on just that value.
I managed to solve this issue myself.
As I mentioned, I was using an Error Bar graph. Right-clicking on the series of interest, I was able to change the graph type for that particular series - essentially leaving me with a chart with multiple graphs in it...particularly simple if you know where to look - which i did not! Thanks everyone for your suggestions.

Resources