Compare commits

..

13 Commits

Author SHA1 Message Date
Purwa Shrivastava
d95c0f572e Merge pull request #24 from qlik-oss/QLIK-98564/sourceMaps
Removing source maps from production mode.
2020-02-12 14:22:31 +01:00
Purwa Shrivastava
fd2f9fa277 Removing source maps from production mode. 2020-02-12 13:39:48 +01:00
Shiben Dutta
e2aac7a294 Merge pull request #23 from qlik-oss/QB886-fix-noInteraction-options
fix: fix noInteraction option in network chart QB-885
2020-02-07 15:28:20 +05:30
Shiben Dutta
b6bcbe7f75 fix: fix noInteraction option in embeded chart 2020-01-30 13:58:48 +05:30
sauravqlik
f4441ef683 Merge pull request #22 from qlik-oss/bugfix/QB-296-take-snapshot
fix: enabling take snapshot flag for Network and Radar chart
2019-12-16 12:28:31 +05:30
SAURAV
3a832e7d6a fix: enabling take snapshot flag for Network and Radar chart 2019-12-11 16:21:49 +05:30
Philip Olsén
22da42de9f Merge pull request #21 from qlik-oss/pol/bd
Update black duck link
2019-09-20 16:04:08 +02:00
Philip Olsén
fddf286a8e Update black duck link 2019-09-20 14:20:10 +02:00
Purwa Shrivastava
e6692b8779 Merge pull request #20 from qlik-oss/atq/AboutInfo
Atq/about info
2019-07-16 16:24:35 +02:00
Purwa Shrivastava
4341fdb5db Typos in About Info. 2019-07-16 10:13:39 +02:00
Purwa Shrivastava
d02852b2ed Added an About Info section to the properties panel. 2019-07-16 10:05:00 +02:00
Albert Backenhof
25f6593f35 Merge pull request #19 from qlik-oss/DEB-136/readme
Updated github readme
2019-05-20 09:09:09 +02:00
Albert Backenhof
76a22121a9 Updated github readme
Issue: DEB-136
2019-05-20 07:29:18 +02:00
5 changed files with 33 additions and 62 deletions

View File

@@ -20,7 +20,7 @@ jobs:
command: npm install
- run:
name: BlackDuck scan
command: curl -s https://blackducksoftware.github.io/hub-detect/hub-detect.sh | bash -s -- \
command: curl -s https://detect.synopsys.com/detect.sh | bash -s -- \
--blackduck.url="https://qliktech.blackducksoftware.com" \
--blackduck.trust.cert=true \
--blackduck.username="svc-blackduck" \

View File

@@ -1,71 +1,20 @@
# Qlik Network Chart
This extension is part of the extension bundles for Qlik Sense. The repository is maintained and moderated by Qlik RD.
[![CircleCI](https://circleci.com/gh/qlik-oss/network-vis-chart.svg?style=shield)](https://circleci.com/gh/qlik-oss/network-vis-chart)
Qlik Sense extension to visualize networks data based on library vis.js (http://visjs.org).
Tested with Qlik Sense 2.2.3.
### Dimensions
4 dimensions are mandatory :
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
The measures are optional
1. tooltip : expression that will be push in the tooltip when hover on a node
2. node value : used to scale the node size
3. edge value : used to scale the edge width
### Additional network settings
* Edge Type : select type of curve between nodes
* Node Shape : dot, square, diamond, triangle ...
* Display Edge Value : switch to display the measures on edge curves
* Position Edge Label : top, bottom, middle, horizontal
* 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.
![Network chart](resources/network_chart_v1.png)
### Data Limit
Starts having issues stabilizing(transforming into untangled view) at around 100-200 nodes depending on dataset.
# Getting Started
## Installation
1. Download the extension zip, `qlik-network-chart_<version>.zip`, from the latest release(https://github.com/qlik-oss/network-vis-chart/releases/latest)
2. Install the extension:
a. **Qlik Sense Desktop**: unzip to a directory under [My Documents]/Qlik/Sense/Extensions.
b. **Qlik Sense Server**: import the zip file in the QMC.
Feel free to fork and suggest pull requests for improvements and bug fixes. Changes will be moderated and reviewed before inclusion in future bundle versions. Please note that emphasis is on backward compatibility, i.e. breaking changes will most likely not be approved.
Usage documentation for the extension is available at https://help.qlik.com.
# Developing the extension
If you want to do code changes to the extension follow these simple steps to get going.
1. Get Qlik Sense Desktop
1. Create a new app and add the extension to a sheet.
1. Create a new app and add Network chart to a sheet.
2. Clone the repository
3. Run `npm install`
4. Set the environment variable `BUILD_PATH` to your extensions directory. It will be something like `C:/Users/<user>/Documents/Qlik/Sense/Extensions/<extension_name>`.
5. You now have two options. Either run the watch task or the build task. They are explained below. Both of them default to development mode but can be run in production by setting `NODE_ENV=production` before running the npm task.
a. **Watch**: `npm run watch`. This will start a watcher which will rebuild the extension and output all needed files to the `buildFolder` for each code change you make. See your changes directly in your Qlik Sense app.
b. **Build**: `npm run build`. If you want to build the extension package. The output zip-file can be found in the `buildFolder`.
4. Run `npm run build` - to build a dev-version to the /dist folder.
5. Move the content of the /dist folder to the extension directory. Usually in `C:/Users/<user>/Documents/Qlik/Sense/Extensions/qlik-network-chart`.
# Original Author
**Michael Laenen**
* [github.com/miclae76](https://github.com/miclae76)

View File

@@ -194,15 +194,35 @@ const component = {
defaultValue: false
}
}
},
about: {
component: 'items',
label: 'About',
items: {
header: {
label: 'Network chart',
style: 'header',
component: 'text'
},
paragraph1: {
label: `Network chart is Qlik Sense chart which allows you to draw a network of connected nodes and edges from a data set to a sheet.`,
component: 'text'
},
paragraph2: {
label: 'Network chart is based upon an extension created by Michael Laenen.',
component: 'text'
}
}
}
}
},
support: {
export: true,
snapshot: false
snapshot: true,
exportData: true
},
snapshot: {
canTakeSnapshot: false
canTakeSnapshot: true
},
paint: paint
};

View File

@@ -179,7 +179,7 @@ function paint ( $element, layout, qTheme, component ) {
$("#"+containerId).css('cursor','default');
network.on('select', function (properties) {
if (properties.hasOwnProperty("nodes")) {
if (properties.hasOwnProperty("nodes") && component.options.noInteraction !== true) {
if (properties.nodes.length > 0) {
// find connected nodes to selection
var connectedNodes = network.getConnectedNodes(properties.nodes[0]);

View File

@@ -2,6 +2,8 @@ const StyleLintPlugin = require('stylelint-webpack-plugin');
const packageJSON = require('./package.json');
const path = require('path');
const webpack = require('webpack');
const SOURCE_MAP = 'sourec-map';
const DEVTOOL = (process.env.NODE_ENV === 'development') ? SOURCE_MAP : false;
const DIST = path.resolve("./dist");
const MODE = process.env.NODE_ENV || 'development';
@@ -9,7 +11,7 @@ const MODE = process.env.NODE_ENV || 'development';
console.log('Webpack mode:', MODE); // eslint-disable-line no-console
const config = {
devtool: 'source-map',
devtool: DEVTOOL,
entry: [
'./src/index.js'
],