11 lines
258 B
JavaScript
11 lines
258 B
JavaScript
export const draw = function(message) {
|
|
d3.select("#chart").append("text")
|
|
.attr('class', 'message')
|
|
.attr('x', 150)
|
|
.attr('y', 150)
|
|
.text(message);
|
|
}
|
|
|
|
export const clear = function() {
|
|
d3.select("#chart").find('text').remove();
|
|
} |