Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(docs): enabled syntax highlighting #97

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ To use the version compatible with d3v3 run:

Using the import syntax `import legend from 'd3-svg-legend'` gives access to the three legend types as an object. You can also import them independently for example `import { legendColor } from 'd3-svg-legend'`

```
```js
var svg = d3.select("#svg-color-quant");

var quantize = d3.scaleQuantize()
Expand Down
4 changes: 2 additions & 2 deletions docs/size.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ Change the default "to" text when working with a quant scale.

legendColor.**labelWrap(number)**

Add text wrapping to the cell labels. In orient horizontal you can use this in combination with shapePadding to get the desired spacing. An exampe: [Size - Linear Scale](#size-line). In orient vertical this will automatically scale the cells to fit the label.An example: [Symbol - Ordinal Scale](#symbol-ordinal)
Add text wrapping to the cell labels. In orient horizontal you can use this in combination with shapePadding to get the desired spacing. An example: [Size - Linear Scale](#size-line). In orient vertical this will automatically scale the cells to fit the label. An example: [Symbol - Ordinal Scale](#symbol-ordinal)

legendSize.**on(string, function)**

There are three custom event types you can bind to the legend: "cellover", "cellout", and "cellclick" An exampe: [Symbol - Ordinal Scale](#symbol-ordinal)
There are three custom event types you can bind to the legend: "cellover", "cellout", and "cellclick" An example: [Symbol - Ordinal Scale](#symbol-ordinal)
4 changes: 2 additions & 2 deletions docs/symbol.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ Change the default "to" text when working with a quant scale.

legendColor.**labelWrap(number)**

Add text wrapping to the cell labels. In orient horizontal you can use this in combination with shapePadding to get the desired spacing. An exampe: [Size - Linear Scale](#size-line). In orient vertical this will automatically scale the cells to fit the label.An example: [Symbol - Ordinal Scale](#symbol-ordinal)
Add text wrapping to the cell labels. In orient horizontal you can use this in combination with shapePadding to get the desired spacing. An example: [Size - Linear Scale](#size-line). In orient vertical this will automatically scale the cells to fit the label. An example: [Symbol - Ordinal Scale](#symbol-ordinal)

legendSymbol.**on(string, function)**

There are three custom event types you can bind to the legend: "cellover", "cellout", and "cellclick" An exampe: [Symbol - Ordinal Scale](#symbol-ordinal)
There are three custom event types you can bind to the legend: "cellover", "cellout", and "cellclick" An example: [Symbol - Ordinal Scale](#symbol-ordinal)