Skip to content

Commit

Permalink
fix: id collision of #point chart and heading
Browse files Browse the repository at this point in the history
TOC tried to link to #point heading, but showed chart.
  • Loading branch information
lukaw3d committed Oct 4, 2024
1 parent 646724b commit b71841c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/docs/parameter/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ A [selection's type](parameter.html#select) determines which data values fall wi

### Selection Projection with `encodings` and `fields`

In the scatterplot example below, highlight <select name="point" onchange="buildProjection('point')"><option value="multi">multiple</option><option value="single">a single</option></select>: <label onclick="buildProjection('point')"><input type="checkbox" name="point" value="cylinders" />Cylinder(s)</label> <label onclick="buildProjection('point')"><input type="checkbox" name="point" value="origin" />Origin(s)</label>.
In the scatterplot example below, highlight <select name="point_vis" onchange="buildProjection('point_vis')"><option value="multi">multiple</option><option value="single">a single</option></select>: <label onclick="buildProjection('point_vis')"><input type="checkbox" name="point_vis" value="cylinders" />Cylinder(s)</label> <label onclick="buildProjection('point_vis')"><input type="checkbox" name="point_vis" value="origin" />Origin(s)</label>.

<div id="point" class="vl-example" data-name="selection_project_multi"></div>
<div id="point_vis" class="vl-example" data-name="selection_project_multi"></div>

With interval selections, we can use the projection to restrict the region to just the <label onclick="buildProjection('interval_vis')"><input type="checkbox" name="interval_vis" value="x" />horizontal (`x`)</label> and/or <label onclick="buildProjection('interval_vis')"><input type="checkbox" name="interval_vis" value="y" />vertical (`y`)</label> dimensions.

Expand Down

0 comments on commit b71841c

Please sign in to comment.