Skip to content

Commit b88e376

Browse files
committed
Adding a link to FAQ#plotly_click
1 parent 58b9507 commit b88e376

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

FAQ.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Frequently Asked Questions
22

33

4-
## How to disable plotly events ?
4+
## How to disable plotly events?
55

66
It's possible disable some plotly events returning `false` in its event. Please see issue: https://github.com/plotly/angular-plotly.js/issues/52#issuecomment-476018478
77

88

99

10-
## Why using `(plotly_click)` instead of `(click)` ?
10+
## Why using `(plotly_click)` instead of `(click)`?
1111

1212
Angular uses the `(click)` directive to itself. If we use the `click` name as event alias to `plotly_click` we might get unexpected behaviour from both angular and plotly.js. We believe it is simpler to just avoid using the same name is better.
1313
Please see issue: https://github.com/plotly/angular-plotly.js/issues/63
@@ -32,11 +32,11 @@ export class AppPlotlyComponent {
3232
```
3333

3434

35-
## The graph is too slow when interacting, what could I do ?
35+
## The graph is too slow when interacting, what could I do?
3636

3737
Angular checks all the data everytime to see if there is a change to be applied, sometimes this brings unexpected slowness when treating a large data to be displayed. To avoid this check, set the property `updateOnlyWithRevision` to `true`. When you need the component to update, you can use the `revision` property (a number) to force it to update. Simply incrementing it (e.g.: `this.revision += 1`) will force the component to be updated.
3838

3939

40-
## How to support Angular 7.x ?
40+
## How to support Angular 7.x?
4141

4242
There was a breaking change from `Angular 7.x` to `8.x`. Please see this thread: https://github.com/plotly/angular-plotly.js/issues/79

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Event handlers for specific [`plotly.js` events](https://plot.ly/javascript/plot
149149
| `(autoSize)` | `Function` | `plotly_autosize` |
150150
| `(beforeExport)` | `Function` | `plotly_beforeexport` |
151151
| `(buttonClicked)` | `Function` | `plotly_buttonclicked` |
152-
| `(plotly_click)` | `Function` | `plotly_click` |
152+
| `(plotly_click)` [why not (click)?](FAQ.md#why-using-plotly_click-instead-of-click) | `Function` | `plotly_click` |
153153
| `(clickAnnotation)` | `Function` | `plotly_clickannotation` |
154154
| `(deselect)` | `Function` | `plotly_deselect` |
155155
| `(doubleClick)` | `Function` | `plotly_doubleclick` |

0 commit comments

Comments
 (0)