Skip to content

Commit eb07b55

Browse files
authored
DOCSP-11513: [CHARTS] Can't create a calculated filed whose value is a literal string (#395)
1 parent d73cfee commit eb07b55

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/calculated-fields.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,20 @@ complex calculated fields.
182182

183183
{ $sum: ["$price", "$salesTax"] }
184184

185+
Literal Strings
186+
~~~~~~~~~~~~~~~
187+
188+
You can set a calculated field's value to a string using the ``$literal``
189+
operator.
190+
191+
.. example::
192+
193+
The following field definition assigns a value of ``my string``:
194+
195+
.. code-block:: json
196+
197+
{ $literal: "my string" }
198+
185199
.. _edit-calculated-field:
186200

187201
Edit a Calculated Field

0 commit comments

Comments
 (0)