I’m trying to bring in multiple datasets that each appear with their own line with the same timeframe. The data is coming from Xano.
But I’m not clear how to use advanced charts to get the JSON data object and break it down into dataset 1, dataset 2, dataset 3 for each line on the Y Axis. Each data set is just a number and they mark a % performance change over a week.
I’ve been really stuck on this for two days. I’ve got a single chart working fine but the guided version doesn’t allow it and I just can’t work it out with the advanced one.
Hey @ferris, relative newbie here so the advice here may not be the most efficient. I also haven’t reviewed your more recent posts in detail so this more general guidance on charts based on my experience.
I needed more flexibility than guided mode gave me, so see the following screenshots on how I built multiple lines in advanced mode. Once you get the hang of advanced mode it’s really easy to use and you can modify almost anything - hopefully the screenshots below give you a template to use and you can then customise from there.
This is the chart that the dataset above creates (note there is additional styling in the options section). Also, a lot of the complexity is in data transformation from the original source - you could do that elsewhere.
I haven’t needed to use it yet, but when you’re building the dataset formula, underneath any collections there is a heading called ‘CONTEXT’, and that has ‘Current Page’. Using that, I’m sure you could wrap the whole createObject that creates a series in an if statement where you are testing the Current Page against a predefined name or id.