sgvizler2
    Preparing search index...

    Draws charts specified in HTML containers, here we call them "sgvizler-containers".

    Example of use: The following sgvizler-container will be selected by sgvizler due to the use of designated attributes. The result is a pie chart (draw with google.visualization.PieChart) showing the number of instance per class in the endpoint at http://sws.ifi.uio.no/sparql/ndp.

    <div id="ex1"
         data-sgvizler-endpoint="http://sws.ifi.uio.no/sparql/npd"
         data-sgvizler-query="SELECT ?class (count(?instance) AS ?noOfInstances)
                              WHERE{ ?instance a ?class }
                              GROUP BY ?class
                              ORDER BY ?class"
         data-sgvizler-chart="google.visualization.PieChart"
         style="width:800px; height:400px;"></div>
    

    These container must have an id attribute (or else sgvizler will not know where to put the chart) and a query attribute (or else the container will be ignored by sgvizler).

    Dependencies:

    • sgvizler.util
    • sgvizler.loader
    • sgvizler.logger
    • sgvizler.Query
    • jQuery sgvizler.Container

    sgvizler

    Index

    Constructors

    • Collects values designated for sgvizler in the given. See also property PREFIX.

      Parameters

      • elementID: string

        The ID for which the attributes should be collected.

      Returns Container

    Properties

    list: Container[] = []

    Accessors

    Methods

    • Parameters

      • elementID: string
      • endpoint: string
      • query: string
      • chartName: string
      • Optionaloptions: string
      • Optionalloglevel: string
      • Optionaloutput: string
      • Optionalmethod: string
      • Optionalparameter: string
      • Optionallang: string

      Returns string

    • Draws the sgvizler-containers with the given element id.

      Parameters

      • elementID: string
      • Optionaloptions: any

      Returns Promise<void>

      containerDraw

    • Parameters

      • elementID: string
      • Optionaloptions: any

      Returns Promise<void>