Skip to content

Commit a4c6806

Browse files
steverenjeff-allen-mongo
authored andcommitted
DOCSP-8897: [Charts] Smart labels for dates (#308)
1 parent 4384cb0 commit a4c6806

File tree

2 files changed

+50
-12
lines changed

2 files changed

+50
-12
lines changed

source/customize-charts/value-axis-options.txt

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ allowing the viewer to focus on more relevant information.
4747
of zero is not recommended. Doing so means the length of the
4848
bars is no longer proportional to the data point values.
4949

50-
Available for the following chart types: all :ref:`Bar/Column
51-
<column-bar-chart-ref>` except 100% stacked,
52-
:ref:`Discrete and Continuous Line
53-
<line-area-chart-ref>`, :ref:`Discrete and Continuous Area
54-
<discrete-charts>`, :ref:`Scatter <scatter-chart-ref>`
50+
The following chart types can use max and min:
51+
52+
- all :ref:`Bar/Column <column-bar-chart-ref>` except 100% stacked
53+
- :ref:`Discrete and Continuous Line <line-area-chart-ref>`
54+
- :ref:`Discrete and Continuous Area <discrete-charts>`
55+
- :ref:`Scatter <scatter-chart-ref>`
5556

5657
Logarithmic Scale
5758
-----------------
@@ -82,10 +83,11 @@ Logarithmic Scale Considerations
8283
a value greater than zero but smaller than the lowest value in the
8384
data set.
8485

85-
Available for the following chart types: :ref:`Grouped and
86-
Colored Bar/Column <column-bar-chart-ref>`, :ref:`Discrete and
87-
Continuous Line <line-area-chart-ref>`, :ref:`Scatter
88-
<scatter-chart-ref>`
86+
The following chart types can use logarithmic scale:
87+
88+
- :ref:`Grouped and Colored Bar/Column <column-bar-chart-ref>`
89+
- :ref:`Discrete and Continuous Line <line-area-chart-ref>`
90+
- :ref:`Scatter <scatter-chart-ref>`
8991

9092
Label Override
9193
--------------
@@ -102,6 +104,42 @@ To customize the axis label for charts that have a single field mapped,
102104
use the Label Override option within that field's customization
103105
options.
104106

105-
Available for the following chart types: :ref:`Bar/Column
106-
<column-bar-chart-ref>`, :ref:`Line <line-area-chart-ref>`,
107-
:ref:`Area <line-area-chart-ref>`, :ref:`Scatter <scatter-chart-ref>`
107+
The following chart types can use label override:
108+
109+
- :ref:`Bar/Column <column-bar-chart-ref>`
110+
- :ref:`Line <line-area-chart-ref>`
111+
- :ref:`Area <line-area-chart-ref>`
112+
- :ref:`Scatter <scatter-chart-ref>`
113+
114+
Smart Labels for Dates
115+
----------------------
116+
117+
Smart labels for dates are axis markers grouped by units of time to reduce
118+
repetition of information. They are generated automatically based on the range of
119+
the chart when a ``date`` type field is encoded on an ``X`` or ``Y`` value axis.
120+
121+
The following chart types can use smart labels for dates:
122+
123+
- :ref:`Continuous Line and Area Charts <continuous-charts>`
124+
- :ref:`Scatter Charts <scatter-chart-ref>`
125+
126+
Smart labels are enabled by default when dates fields are encoded on value
127+
axes on supported chart types.. To toggle smart labels on and off:
128+
129+
1. Click the :guilabel:`Customize` tab above the :ref:`encoding channels
130+
<encoding-channels>` in the :doc:`Chart Builder </build-charts>`.
131+
132+
#. Click the :guilabel:`X` or :guilabel:`Y Axis` section.
133+
134+
#. If the :guilabel:`Use Smart Labels on Axis` toggle swich is set
135+
to :guilabel:`Off`, toggle it to :guilabel:`On`.
136+
137+
.. figure:: /images/charts/smart-label-switch.png
138+
:figwidth: 220px
139+
:alt: Smart label toggle switch
140+
141+
.. note::
142+
143+
When smart labels are enabled, date and time formatting options remain
144+
available. Any formatting options you apply are visible in the chart's
145+
tooltips.
40.7 KB
Loading

0 commit comments

Comments
 (0)