Data Converter to CSV bar chart attempt failed - need advice

Hi

Is it possible to use device datas tream CSV strings in the server side Data Converter decoding the CSV virtual to values that can be
used to display a bar chart with say 12 bars with with each of the CSV values converted to 12 integers for each bar. So the x bar will be months and the Y axis will be the total for each month. Is that possible?

Hello @linktek. We did not add read/upload CSV support to Data Converter feature. In theory, you could try writing custom JavaScript code to read a CSV file. But that’s just theoretical.

My data converter panel shows the messages in the message panel but the javascript code does not seem to run or active …

I wonder if the js code get executed immeditaly after initiating a data converter or if there is a activation delay on the server side?

My js code looks as follows

function initialize(context) {
const { handler } = context;
handler.useBlynkAuthToken();
}

function handleRequest(context) {
const { request, server } = context;
const { uri, headers, body, isSecure } = request;

// Authenticate the device
const device = server.authenticateDevice(headers[‘Authorization’]);

// Parse incoming JSON payload
const data = JSON.parse(new TextDecoder().decode(body));
const { V190, V191 } = data;

// Update datastreams with new values
device.setDataStreamValue(‘V190’, V190);
device.setDataStreamValue(‘V191’, V191);

return { status: 200, body: ‘Datastreams updated’ };
}

say active but nothing happening even with the
code http code in my ESP32 device