AKSW / cubevizjs

CubeViz.js is the successor of the CubeViz and provides statistical data exploration and visualization. Its completely written in JavaScript.
Other
16 stars 4 forks source link

Implement a js-config-part to hide UI elements #21

Closed k00ni closed 7 years ago

k00ni commented 7 years ago
GeorgesAlkhouri commented 7 years ago

Configuration example:

        var configuration = {
            ui_container: 'react',
            data_source: {
                value: 'https://raw.githubusercontent.com/AKSW/cubeviz.ontowiki/master/assets/serbia.n3'
            },
            ui_configuration: {
                show_ui_elements: false,
                measure: 'http://purl.org/linked-data/sdmx/2009/measure#obsValue',
                attribute: 'http://elpo.stat.gov.rs/lod2/RS-DIC/esa95-unit/RT_GDP',
                dimension_elements: ['http://elpo.stat.gov.rs/lod2/RS-DIC/geo/RS', 'http://elpo.stat.gov.rs/lod2/RS-DIC/time/Y2005', 'http://elpo.stat.gov.rs/lod2/RS-DIC/time/Y2006'],
                chart_name: 'heatmap'
            }
        };

TODO:

k00ni commented 7 years ago

Please use the following configuration (move data_source part):

ui_configuration: {
    show_ui_elements: false,
    chart_name: 'heatmap'
},
data_configuration: {
    source: 'http://...',
    measure: 'http://purl.org/linked-data/sdmx/2009/measure#obsValue',
    attribute: 'http://elpo.stat.gov.rs/lod2/RS-DIC/esa95-unit/RT_GDP',
    dimension_elements: ['http://elpo.stat.gov.rs/lod2/RS-DIC/geo/RS', 'http://elpo.stat.gov.rs/lod2/RS-DIC/time/Y2005', 'http://elpo.stat.gov.rs/lod2/RS-DIC/time/Y2006'],
}

Please add dataset information to data_configuration part.

GeorgesAlkhouri commented 7 years ago

Final config:

ui_configuration: {
    ui_container: 'react',
    show_ui_elements: false,
    chart_name: 'heatmap'
},
data_configuration: {
    source: 'http://...',
    measure: 'http://purl.org/linked-data/sdmx/2009/measure#obsValue',
    attribute: 'http://elpo.stat.gov.rs/lod2/RS-DIC/esa95-unit/RT_GDP',
    dimension_elements: ['http://elpo.stat.gov.rs/lod2/RS-DIC/geo/RS', 'http://elpo.stat.gov.rs/lod2/RS-DIC/time/Y2005', 'http://elpo.stat.gov.rs/lod2/RS-DIC/time/Y2006'],
}