Skip to content

Commit dc0ff43

Browse files
steverenjeff-allen-mongo
authored andcommitted
DOCSP-3284: Value Axis Customization
DOCSP-3284: Value Axis Customization DOCSP-3284: Value Axis Customization DOCSP-3284: Value Axis Customization
1 parent fca0ab5 commit dc0ff43

File tree

2 files changed

+93
-2
lines changed

2 files changed

+93
-2
lines changed

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

Lines changed: 93 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _value-axis-options:
22

33
==================
4-
Value-Axis Options
4+
Value Axis Options
55
==================
66

77
.. default-domain:: mongodb
@@ -12,4 +12,95 @@ Value-Axis Options
1212
:depth: 1
1313
:class: singlecol
1414

15-
TBD
15+
|charts| offers several customization options which modify the
16+
representation of a chart's X and Y value axes without affecting the
17+
formatting of the data points in the visualization.
18+
19+
.. figure:: /images/charts/value-axis-custom.png
20+
:figwidth: 251px
21+
:alt: Value axis customizations
22+
23+
.. note::
24+
25+
A value axis shows a continuous scale of values. Charts such as
26+
:ref:`Bar/Column <column-bar-chart-ref>` and
27+
:ref:`Discrete Line/Area <discrete-charts>` have just one
28+
value axis. :ref:`Continuous line and area <continuous-charts>`
29+
and :ref:`scatter <scatter-chart-ref>` charts have two value
30+
axes.
31+
32+
.. _max-min-options:
33+
34+
Max and Min
35+
-----------
36+
37+
The :guilabel:`Max` and :guilabel:`Min` value axis options allow
38+
you to specify maximum and minimum values to display on a chart.
39+
Any data points with values outside the specified limits appear at
40+
the boundaries of the chart. Setting a maximum display value
41+
is useful for removing outlying data from the chart and
42+
allowing the viewer to focus on more relevant information.
43+
44+
.. note::
45+
46+
Changing the minimum for bar and column charts from the default
47+
of zero is not recommended. Doing so means the length of the
48+
bars is no longer proportional to the data point values.
49+
50+
Available for the following chart types: :ref:`Bar/Column
51+
<column-bar-chart-ref>`, :ref:`Discrete and Continuous Line
52+
<line-area-chart-ref>`, :ref:`Discrete and Continuous Area
53+
<discrete-charts>`, :ref:`Scatter <scatter-chart-ref>`
54+
55+
Logarithmic Scale
56+
-----------------
57+
58+
Toggling the :guilabel:`Logarithmic Scale` switch to the
59+
:guilabel:`On` position causes your chart
60+
to use a logarithmic scale instead of a linear scale for data
61+
values. Using a logarithmic scale is helpful for showing
62+
the percentage change from one value to the next and for charts
63+
with a large value differential from smallest to largest. Data sets
64+
such as stock market movements, earthquake strength measurements, and
65+
global population sizes are good use cases for a logarithmic scale
66+
chart.
67+
68+
Logarithmic Scale Considerations
69+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70+
71+
- Use the :guilabel:`Logarithmic Scale` option only with chart data
72+
that consists of either all positive values or all negative values.
73+
If the chart includes a mix of positive and negative values, or if
74+
it includes the value ``0``, the chart will not render.
75+
76+
- Bar and column charts normally have a baseline of ``0``, but
77+
logarithmic scale charts have a baseline of ``1`` because
78+
``log(0)`` is undefined. As a result, charts with data points between
79+
``0`` and ``1`` do not render well. You can mitigate this effect by
80+
setting the :ref:`axis minimum <max-min-options>` of the chart to
81+
a value greater than zero but smaller than the lowest value in the
82+
data set.
83+
84+
Available for the following chart types: :ref:`Grouped and
85+
Colored Bar/Column <column-bar-chart-ref>`, :ref:`Discrete and
86+
Continuous Line <line-area-chart-ref>`, :ref:`Scatter
87+
<scatter-chart-ref>`
88+
89+
Label Override
90+
--------------
91+
92+
The :guilabel:`Label Override` field allows you to create a
93+
custom axis label. Custom labels can be more descriptive
94+
than the default labels and help chart viewers quickly grasp
95+
the significance of chart data.
96+
97+
The Label Override customization option is available on the ``X``
98+
or ``Y`` value axis for charts in which the author has encoded multiple
99+
data series by mapping more than one field on a given axis.
100+
To customize the axis label for charts that have a single field mapped,
101+
use the Label Override option within that field's customization
102+
options.
103+
104+
Available for the following chart types: :ref:`Bar/Column
105+
<column-bar-chart-ref>`, :ref:`Line <line-area-chart-ref>`,
106+
:ref:`Area <line-area-chart-ref>`, :ref:`Scatter <scatter-chart-ref>`
32.5 KB
Loading

0 commit comments

Comments
 (0)