Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6433daee95 | ||
|
|
d210ad3908 | ||
|
|
f461493b0f | ||
|
|
4312078951 | ||
|
|
7c53f8811b | ||
|
|
51ea042580 | ||
|
|
f9242dff27 | ||
|
|
50fc4289e0 | ||
|
|
71944b4a9e | ||
|
|
401944e837 | ||
|
|
67b1e97951 | ||
|
|
8079887f10 | ||
|
|
2eef3679c7 | ||
|
|
7518b6c9ce |
BIN
assets/network.png
Normal file
BIN
assets/network.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -17,6 +17,10 @@ gulp.task('zip-build', function(){
|
||||
.pipe(gulp.dest(settings.buildDestination));
|
||||
});
|
||||
|
||||
gulp.task('add-assets', function(){
|
||||
return gulp.src("./assets/**/*").pipe(gulp.dest(settings.buildDestination));
|
||||
});
|
||||
|
||||
gulp.task('webpack-build', done => {
|
||||
webpack(webpackConfig, (error, statistics) => {
|
||||
const compilationErrors = statistics && statistics.compilation.errors;
|
||||
@@ -42,7 +46,7 @@ gulp.task('update-qext-version', function () {
|
||||
});
|
||||
|
||||
gulp.task('build',
|
||||
gulp.series('remove-build-folder', 'webpack-build', 'update-qext-version', 'zip-build')
|
||||
gulp.series('remove-build-folder', 'webpack-build', 'update-qext-version', 'add-assets', 'zip-build')
|
||||
);
|
||||
|
||||
gulp.task('watch', () => new Promise((resolve, reject) => {
|
||||
|
||||
@@ -8,9 +8,9 @@ Tested with Qlik Sense 2.2.3.
|
||||
### Dimensions
|
||||
4 dimensions are mandatory :
|
||||
|
||||
1. node identifier
|
||||
2. node label
|
||||
3. node parent identifier
|
||||
1. node identifier (consecutive numbers starting at 0)
|
||||
2. node label (Any text)
|
||||
3. node parent identifier (Refers to node indentifier)
|
||||
4. node group
|
||||
|
||||
### Measures
|
||||
@@ -28,6 +28,8 @@ The measures are optional
|
||||
* Display Shadow : switch to enable shadow effects behind edge and nodes
|
||||
|
||||
### Sample
|
||||
A data sample can be found here: https://github.com/qlik-oss/network-vis-chart/blob/master/resources/Network%20data.xlsx
|
||||
|
||||
QVF based on characters from Victor Hugo's novel , Les Misérables.
|
||||

|
||||
|
||||
|
||||
BIN
resources/Network data.xlsx
Normal file
BIN
resources/Network data.xlsx
Normal file
Binary file not shown.
58
src/index.js
58
src/index.js
@@ -22,30 +22,41 @@ const component = {
|
||||
}
|
||||
},
|
||||
//property panel
|
||||
data: {
|
||||
dimensions: {
|
||||
min: 4,
|
||||
max: 4
|
||||
/*
|
||||
1. Dimension: Node ID, numeric (Event ID or else) or String
|
||||
2. Dimension: Node Label
|
||||
3. Dimension: Node Parent ID, numeric (Event ID or else) or String
|
||||
4. Dimension: Node Cluster
|
||||
*/
|
||||
},
|
||||
measures: {
|
||||
min: 0,
|
||||
max: 3
|
||||
/*
|
||||
1. Measure: title text for tooltip (optional)
|
||||
2. Measure: node value
|
||||
3. Measure: edge value
|
||||
*/
|
||||
}
|
||||
},
|
||||
definition: {
|
||||
type: "items",
|
||||
component: "accordion",
|
||||
items: {
|
||||
dimensions: {
|
||||
uses: "dimensions",
|
||||
min: 4,
|
||||
max: 4
|
||||
/*
|
||||
1. Dimension: Node ID, numeric (Event ID or else) or String
|
||||
2. Dimension: Node Label
|
||||
3. Dimension: Node Parent ID, numeric (Event ID or else) or String
|
||||
4. Dimension: Node Cluster
|
||||
*/
|
||||
},
|
||||
measures: {
|
||||
uses: "measures",
|
||||
min: 0,
|
||||
max: 3
|
||||
/*
|
||||
1. Measure: title text for tooltip (optional)
|
||||
2. Measure: node value
|
||||
3. Measure: edge value
|
||||
*/
|
||||
data: {
|
||||
uses: "data",
|
||||
items:{
|
||||
dimensions:{
|
||||
disabledRef: ""
|
||||
},
|
||||
measures: {
|
||||
disabledRef: ""
|
||||
}
|
||||
}
|
||||
},
|
||||
sorting: {
|
||||
uses: "sorting"
|
||||
@@ -59,13 +70,14 @@ const component = {
|
||||
}
|
||||
},
|
||||
settings: {
|
||||
uses: "settings",
|
||||
type: "items",
|
||||
label: "Settings",
|
||||
items: {
|
||||
edgeType: {
|
||||
ref: "edgeType",
|
||||
type: "string",
|
||||
component: "dropdown",
|
||||
label: "Egde Type",
|
||||
label: "Edge Type",
|
||||
options: [
|
||||
{ value: 'dynamic' },
|
||||
{ value: 'continuous' },
|
||||
@@ -141,7 +153,7 @@ const component = {
|
||||
export: true
|
||||
},
|
||||
snapshot: {
|
||||
canTakeSnapshot: true
|
||||
canTakeSnapshot: false
|
||||
},
|
||||
paint: paint
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name" : "Network chart",
|
||||
"description" : "Network chart",
|
||||
"icon" : "extension",
|
||||
"description" : "Displays hierarchical or relational dimensions as nodes and edges´, with measures to show the significance of its links.",
|
||||
"icon" : "bubbles",
|
||||
"type" : "visualization",
|
||||
"version": "X.Y.Z",
|
||||
"preview" : "network.png",
|
||||
|
||||
Reference in New Issue
Block a user