Charter

CSV variable example

This sample project demostrates using a variable to set the csv file used by Charter stack. This approach allows you to dynamically change what data is presented to the viewer. This example uses url parameters (and a little php code) to process the logic to determine what csv file should be used. There are various approaches you could use to achieve the same kind of result.

It is important to note that we are just using a single Charter stack here and simply dynamically changing the data source.

To test this out simply change the value in the 'Select an agent' drop down. See how the chart (and related info) is updated according to the value set in the url.


Agent ID: 1876

Agent name: Gavin Jones