0.3.0 • Published 4 years ago
infovis v0.3.0
TableVis
Live demo here
Install
npm install infovis
How to use in VueJS projects
<script>
import infovis from "infovis";
import "infovis/dist/infovis.css";
export default {
mounted () {
const conf = {
// ’tableId’ is the id of our html table
extractor: infovis.extractors.tableIdExtractor.getTable('tableId'),
// our new table will be inserted
// in div with id ’divId’
newTableInDiv: document.getElementById('divId'),
// replace will be the method to insert our new table
// options are: append, insertBefore, replace
tableInsertMethod: 'replace',
// div with id ’chartsDiv’ will be used
// to insert our new table
chartsDiv: document.getElementById('chartsDiv')
}
infovis.transformTable(conf)
}
};
</script>
How to use in without VueJS
<head>
<script src="https://unpkg.com/vue"></script>
<script src="path/to/infovis.umd.js"></script>
<link rel="stylesheet" href="path/to/infovis.css">
</head>
<script>
new Vue({
created () {
const conf = {
// ’tableId’ is the id of our html table
extractor: infovis.default.extractors.tableIdExtractor.getTable('tableId'),
// our new table will be inserted
// in div with id ’divId’
newTableInDiv: document.getElementById('divId'),
// replace will be the method to insert our new table
// options are: append, insertBefore, replace
tableInsertMethod: 'replace',
// div with id ’chartsDiv’ will be used
// to insert our new table
chartsDiv: document.getElementById('chartsDiv'),
// persistence could be true or false
// depending if we want to persis our actions out not
// by default is true
persistence: false
}
infovis.default.transformTable(conf)
}
})
</script>
0.3.0
4 years ago
0.2.9
4 years ago
0.2.7
4 years ago
0.2.8
4 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago