Skip to content

Commit

Permalink
Use more idiomatic stroke option (#2992)
Browse files Browse the repository at this point in the history
* Use more idiomatic `stroke` option

* Add missing backticks
  • Loading branch information
joelostblom authored Mar 26, 2023
1 parent 1addc2e commit 1317f6d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/user_guide/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ First remove the grid using the :meth:`Chart.configure_axis` method.
)

You'll note that while the inside rules are gone, the outside border remains.
Hide it by setting the `strokeWidth` or the `strokeOpacity` options on
:meth:`Chart.configure_view` to `0`:
Hide it by setting ``stroke=None`` inside :meth:`Chart.configure_view`
(``strokeWidth=0`` and ``strokeOpacity=0`` also works):

.. altair-plot::

Expand All @@ -438,12 +438,12 @@ Hide it by setting the `strokeWidth` or the `strokeOpacity` options on
).configure_axis(
grid=False
).configure_view(
strokeWidth=0
stroke=None
)


It is also possible to completely remove all borders and axes by
combining the above option with setting `axis` to `None` during encoding.
combining the above option with setting ``axis`` to ``None`` during encoding.

.. altair-plot::

Expand All @@ -459,7 +459,7 @@ combining the above option with setting `axis` to `None` during encoding.
).configure_axis(
grid=False
).configure_view(
strokeWidth=0
stroke=None
)


Expand Down

0 comments on commit 1317f6d

Please sign in to comment.