Skip to content

Commit

Permalink
[chores] Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
totallynotvaishnav committed Sep 21, 2022
1 parent bbdcc8a commit e1acec9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ NetJSON format used internally is based on [networkgraph](http://netjson.org/rfc

The `nodeSize` property is used to customize the size of the nodes.

The `clusterConfig` property is used to customize the clusters. You can pass any valid [Echarts options](https://echarts.apache.org/en/option.html#series-scatter.data) in `clusterConfig`. If you are using GeoJSON data, you can customize the cluster styles by using the CSS classes `marker-cluster` and `.marker-cluster-small`.
The `clusterConfig` property is used to customize the clusters. You can pass any valid [Echarts options](https://echarts.apache.org/en/option.html#series-scatter.data) in `clusterConfig`. If you are using GeoJSON data, you can customize the cluster styles by using the CSS classes `marker-cluster`, `marker-cluster-small`, `marker-cluster-medium` and
`marker-cluster-large`.

`linkConfig` deals with the configuration of the links. You can pass any valid [Echarts options](https://echarts.apache.org/en/option.html#series-lines) in `linkConfig`.

Expand Down
6 changes: 3 additions & 3 deletions dist/netjsongraph.min.js

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions src/css/netjsongraph-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,15 @@

.marker-cluster div {
color: #fff;
background-color: rgba(21, 102, 169, 0.8) !important;
}

.marker-cluster-small {
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
background-color: unset !important;
}

.marker-cluster-small div {
background-color: rgba(21, 102, 169, 0.8) !important;
}

@media only screen and (max-width: 850px) {
.njg-sideBar {
background: rgba(255, 255, 255, 0.96);
Expand Down

0 comments on commit e1acec9

Please sign in to comment.