# Contour chart Charts and tables from [Contour](../../contour/overview/index.md) analyses can be embedded using the **Contour chart** section. You can add one either by clicking + Add Widget or typing / in a paragraph field to open up the [widget insertion menu](../embed-widgets/index.md#from-a-document), or directly via the [Copy for Notepad button](../embed-widgets/index.md#from-a-resource) on the Contour analysis itself. Notepad updates the source data when you open a Notepad document with a Contour board. ![notepad\_widgets\_contour\_chart\_with\_parameters](../../../assets/a4533410b6bc5667a80eb175433faab4abe893e56ef8e15a2f006bbb261c6867.webp) :::callout{theme="warning" title="Interactive locking for the Contour widget"} The lock data feature on the Contour widget functions differently from other widgets. When applied, it locks both the visualization and data of the Contour widget while still allowing user interaction. On the other hand, locking other widgets produces a non-interactive snapshot of the widget. Interactively locked widgets will not load the locked visual if the backing transactions have been deleted either manually or by a retention policy. Contour widgets will not lock if they are configured with [Notepad template input parameters](../templates-inputs/index.md).

For more information, refer to the [documentation on the lock data feature.](../snapshot-widgets/index.md) ::: ### Widget properties * **Path:** Specify a path from the selected Contour Analysis. * **Board:** Define which board should be shown from the selected path. * **Parameters:** (Case-dependent) The parameters configuration will only be shown if the source Contour analysis defines and uses [parameters](../../contour/analysis-parameterize/index.md). The configuration allows overwriting these parameter variable values separately. If no value is specified, the default parameter value from the Contour analysis will be used. ### Template configuration **Parameter overrides:** (Optional) You can specify Notepad template input parameters to override Contour parameters. These values will be passed to the embedded Contour chart, allowing you to customize the chart's [external parameters](../../contour/analysis-parameterize/index.md). To enable this configuration option in Notepad, ensure that the Contour chart is set up to use Contour parameters. If the chart does not use Contour parameters, this configuration option will not be available. In a Notepad template there are two editing modes for overriding Contour parameters with template input parameters; **Use form** and **Use JSON**. #### Use form This is the default mode for overriding Contour parameters. You can map individual Contour parameters to Notepad parameters. There are two ways to input override values: * **Static input values:** Directly enter values into fields. These values remain static for each Notepad document generated. * **Notepad template input parameters:** Use a [Notepad template input](../templates-inputs/index.md) parameter that matches the type of the Contour parameter. **Note:** Contour parameters may be configured to allow multiple values. Since Notepad does not currently support array parameters, you must use the **Use JSON** editing mode to override these parameters. In **Use form** mode, these values can be overridden with a single value, but the option to configure a template input parameter is not available. ![The "Use form" mode in the Notepad Contour widget.](../../../assets/060769e241fb0a260c333e4d0b16da0602167101b2ac256dffd20b7b98fa03b1.webp) #### Use JSON In this mode, you can specify a single JSON string for Contour parameters and their associated override values. To switch to this mode select **Use JSON**. The override values will be passed to the embedded Contour chart to override its [external parameters](../../contour/analysis-parameterize/index.md). ![notepad\_widgets\_contour\_use\_json](../../../assets/da840a39c0b8cdad61b7dcb8bcbfacbd9c231a34907b8a526fc2e795692217d7.webp) Below are examples of how to provide the required JSON string: |Contour input type |Example Contour parameter name |Example JSON string | |--- |--- |--- | |String | `carrier_code` |`{"carrier_code": "OO"}` | |Array of String | `carrier_codes` |`{"carrier_codes": ["OO", "MQ"]}` | |Number | `booking_class`| `{"booking_class": 2}` | |Array of Number | `booking_classes`| `{"booking_classes": [1,2]}` | |Date | `departure_date` |`{"departure_date": "2022-09-01T00:00:00+02:00"}`| You can combine multiple values into a single JSON string as shown below: `{"carrier_code": "OO", "booking_class": 2}` Refer to the example below on how to provide a template input with a preview value and connect it to the Contour parameters. ![notepad\_widgets\_contour\_chart\_with\_parameters](../../../assets/eb7bb8272d6eea8857c2f36efcf8b76ca04401956c7173d3eeb38d19aa02c0ba.webp)