nanocube icon indicating copy to clipboard operation
nanocube copied to clipboard

Web Client Config options: where is the JSON file located

Open edgarchikomo opened this issue 6 years ago • 3 comments

I would like to begin by saying Kudos for such an excellent project.

My query is on the configuration JSON file. I can't find this file. Where is it located in the project directory so that i make the customizations i want:

What i want to do is use different colors for items in a category. For instance, taking the category of phones as an example, i want the records for iphone to be in a given color and for android phones to be displayed in another color. Kindly assist me in making this changes.

edgarchikomo avatar Mar 27 '18 12:03 edgarchikomo

ncwebviewer-config -s http://localhost --ncport 29512

When you run ncwebviewer-config without -p , it will print out the json config without starting the webserver.

Let me update the docs to reflect this clearly

Thanks!

Horace

On Tue, Mar 27, 2018 at 8:55 AM, edgarchikomo [email protected] wrote:

I would like to begin by saying Kudos for such an excellent project.

My query is on the configuration JSON file. I can't find this file. Where is it located in the project directory so that i make the customizations i want:

What i want to do is use different colors for items in a category. For instance, taking the category of phones as an example, i want the records for iphone to be in a given color and for android phones to be displayed in another color. Kindly assist me in making this changes.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/laurolins/nanocube/issues/63, or mute the thread https://github.com/notifications/unsubscribe-auth/ACX4XNFNFtFcnxNiagVXHHZH5Kx8BNAVks5tijbWgaJpZM4S83wc .

salivian avatar Mar 27 '18 19:03 salivian

Thanks Salivian. I was able to view the configuration and tweak it.

On another issue, kindly advise how i can display data points like, for example, the device dimension where i want the data for Android to be displayed in Reds and iPhone displayed in Blues on the same map. How do i achieve this implementation - is there logic i need to add for that.

edgarchikomo avatar Apr 05 '18 07:04 edgarchikomo

You may specify that as 2 different layers (one in red and one in blue) in the config file eg. if you name your nanocube as phone.

"nanocube": { "phone": { "url": "http://localhost:29512" } }

....

}, "datasrc": { "android": { "expr": "phone[type=='iphone']", "colormap": "Blues" }, "iphone": { "expr": "phone[type=='android']", "colormap": "Reds" } }

salivian avatar Apr 09 '18 17:04 salivian