blob: facec67dd83b63de92f79058d3bc1bc784980644 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ClassGraphPage} from './vue_components/class_graph_page.js';
// For ease of development, we serve our testing data on localhost:8888. This
// should be changed as we find other ways to serve the assets (eg. user upload
// or hosted externally).
const LOCALHOST = 'http://localhost:8888';
import * as d3 from 'd3';
import './common.css';
document.addEventListener('DOMContentLoaded', () => {
d3.json(`${LOCALHOST}/json_graph.txt`).then(data => {
new ClassGraphPage({
el: '#class-graph-page',
propsData: {
graphJson: data.class_graph,
},
});
});
});