Dashboards & Visualizations

why are Data value and x axis label are not same in line chart?

ankitgupta15
Engager

I am trying to create a line chart and it has date as x-axis and some category as y axis. I could see "Mon Jul 8" on x axis but the data point is not above it, it is showing data point on left of it i.e for Jul 7. PFB the screenshot

alt text

I want the data point for the label below.

0 Karma

justinatpnnl
Communicator

The labels on the X-axis are likely a result of whatever charting command your are using. Without seeing your original query, I'm guessing that you are using timechart and specifying span=1w or you are not specifying a time span and it is defaulting to one week. In either case, if you would like the X-axis to show labels for each day, modify your timechart to include span=1d. For example:

| timechart span=1d count by host
0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...