Skip to content

Original Value not showing in JS viewer #41

@JoshuaFortriede

Description

@JoshuaFortriede

Although keep_orig=True is used when normalizing the data, and the JSON file contains the mat_orig data, the visualization does not show the original value.

In clustergrammer.js, from 297 - 308, the network_data.links is being created. Note, that while the .value (normalized value) is set, no .value_orig is set. In lines 365 - 369, the first links element is then checked to see if it contains a value_orig. Because no value_orig was set above, this is always false, and the config.keep_orig is set to false.

I updated my local copy to check:
if(_.has(config.network_data, 'mat_orig'))
if it does, then I go through the loop set with adding value_orig, else I go through the original 298-308 loop set.

Can you verify this bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions