Select to view content in your preferred language

Line Chart guide value format when X axis is a Date?

622
5
Jump to solution
02-20-2024 08:36 AM
Labels (2)
TimothyRudzik
Occasional Contributor

I have a line chart in my map depicting temperature values over time and so the X axis is a date attribute. I want to add vertical guides to this chart but can not determine the proper format of the guide value when my X axis is a date.  I have not been able to find this answer on the web.line chart example.PNG

 

 In my example I have a horizontal guide at 32 degrees and so the guide value is 32.  

horizontal guide.PNG

 

But I also want a vertical guide on February 9th, 2021. Since the X axis is a date field, what would the guide value format look like in order to achieve that?vertical guide.PNG

 

 

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
TimothyRudzik
Occasional Contributor

Chris,

I realized as I was looking at your screenshot that you had aggregation turned on. So I enabled aggregation and added a new vertical guide and now I can see date selectors in the Guides tab. Then I changed aggregation back to <none> and tried to create new vertical guides and the date picker was gone again. Is it strange that aggregation would have to be ON in order to see the date picker in the Guides tab? Would that be considered a bug?

This example shows the Guides tab where aggregation is NOT USED in the Data tab and as you can see there is no date picker.

chart properties Guides tab no date selector.PNG

 

This example shows the Guides tab when aggregation IS USED in the Data tab and now the date picker shows up.

chart properties guide tab has date selctors.PNG

The workaround solution is that aggregation must be turned on in order to see the date picker in the Guides tab.

Thanks,

Timothy Ryan Rudzik

View solution in original post

5 Replies
DanPatterson
MVP Esteemed Contributor

did you try entering a numeric value like 10 and see if the label automatically shows February 19, 2021

you may have to do some manual calculations for the start and end dates


... sort of retired...
0 Kudos
TimothyRudzik
Occasional Contributor

No luck entering 10 or any other integer value I can think to try. I have also tried entering various date formats without any luck.

0 Kudos
ChristopherAllen
Esri Contributor

Hi @TimothyRudzik ,

Thanks for the question. The x-axis guide *should* have date picker inputs when the x-axis variable is a date. For example:

ChristopherAllen_0-1708713809329.png

Would it be possible for you to send a screenshot of the Data tab of the Chart Properties pane? This might help us to troubleshoot your issue. 

ChristopherAllen_3-1708714152963.png

Thanks!

Chris

 

 

0 Kudos
TimothyRudzik
Occasional Contributor

Chris,

I realized as I was looking at your screenshot that you had aggregation turned on. So I enabled aggregation and added a new vertical guide and now I can see date selectors in the Guides tab. Then I changed aggregation back to <none> and tried to create new vertical guides and the date picker was gone again. Is it strange that aggregation would have to be ON in order to see the date picker in the Guides tab? Would that be considered a bug?

This example shows the Guides tab where aggregation is NOT USED in the Data tab and as you can see there is no date picker.

chart properties Guides tab no date selector.PNG

 

This example shows the Guides tab when aggregation IS USED in the Data tab and now the date picker shows up.

chart properties guide tab has date selctors.PNG

The workaround solution is that aggregation must be turned on in order to see the date picker in the Guides tab.

Thanks,

Timothy Ryan Rudzik

ChristopherAllen
Esri Contributor

Hi @TimothyRudzik ,

Thank you for following up; I can reproduce this bug when I set the aggregation to <none>. When a temporal line chart uses <none> aggregation the x-axis guide should still use the date picker control. I've logged this bug so it can be addressed in a future release. 

Thanks again,

Chris

0 Kudos