The chart is black as shown in the attached photo. This is a chrome extension. When I click on inspect on the popup, plottable/d3 elements are defined so it seems that plottable is being made available to the html
function drawChart() {
let xScale = new Plottable.Scales.Linear(),
yScale = new Plottable.Scales.Linear(),
xAxis = new Plottable.Axes.Numeric(xScale, "bottom"),
yAxis = new Plottable.Axes.Numeric(yScale, "left"),
plot: Plottable.Plots.Line<number> = new Plottable.Plots.Line();
plot.x(d => d.x, xScale);
plot.y(d => d.y, yScale);
let data = [
{ "x": 0, "y": 1 },
{ "x": 1, "y": 2 },
{ "x": 2, "y": 4 },
{ "x": 3, "y": 8 }
],
dataset: Plottable.Dataset = new Plottable.Dataset(data);
plot.addDataset(dataset);
let chart: Plottable.Components.Table = new Plottable.Components.Table([
[yAxis, plot],
[null, xAxis]
]);
chart.renderTo("svg#VisitorChart");
}
$(document).ready(function() {
drawChart();
});