Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
phyunsj authored Jun 23, 2018
1 parent a5020c9 commit c4152dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# node-red-custom-widget

Based on [Creating your own UI widget for a Node-RED dashboard using an external charting library](http://noderedguide.com/tutorial-node-red-dashboards-creating-your-own-ui-widget-ii-using-external-charts/), create ui-widget with external source [Table With Embedded Line Chart - D3 Example](http://bl.ocks.org/llimllib/841dd138e429bb0545df)
Follow [Creating your own UI widget for a Node-RED dashboard using an external charting library](http://noderedguide.com/tutorial-node-red-dashboards-creating-your-own-ui-widget-ii-using-external-charts/) guide, create ui-widget with external source [Table With Embedded Line Chart - D3 Example](http://bl.ocks.org/llimllib/841dd138e429bb0545df)

## `ui-template` code snippet

Expand All @@ -23,16 +23,16 @@ Based on [Creating your own UI widget for a Node-RED dashboard using an external
scope.$watch('msg', function (msg) {
if (msg) {
d3.select("#datatable").selectAll("*").remove(); // Clear
d3.select("#datatable").selectAll("*").remove(); // Clear D3 nodes
var rows = msg.payload;
...
d3.select //
d3.select // D3 libs
...
} // if (msg)
}); // scope.$watch()
}, 3000); // close out the setInterval
// 3 secs for spinner demo
}, 3000); // setInterval:3 secs for spinner demo
})(scope);
</script>
```
Expand Down

0 comments on commit c4152dd

Please sign in to comment.