python – How to get Chart.js into engineering notation?

I have been trying to take my x-axis labels and turn them into engineering notation. They are currently in scientific notation using a callback function.

            x: {
                ticks: {
                callback: (val) => (val.toExponential(3))
                }

This above puts it into scientific notation, (ie. 4.652E8) but I need it to be in engineering notation. I have tried changing scale types from linear to logarithmic and it always gave me 1.3E9 when I need more information than that. I need at least 3 digits. 1.24E9. Any help would be appreciated. This is my full chart.js code. The backend is a Python API currently running using flask.

    var options = {
    type: 'line',
    data: {
        labels: {{ labels | safe }},
        datasets: ({
            label: 'Value',
            data: {{ values | safe }},
            backgroundColor: 'white',
            borderWidth: 1,
            order: 2
        },
        {
            label: 'Peak value',
            data: ({
            x: {{ labels2(0) | safe }},
            y: {{ values2(0) | safe }}
            }, {
            x: {{ labels2(1) | safe }},
            y: {{ values2(1) | safe }}
            }, {
            x: {{ labels2(2) | safe }},
            y: {{ values2(2) | safe }}
            }),
            backgroundColor: 'black',
            borderWidth: 5,
            pointRadius: 5,
            showLine: false,
            order: 1
            }
        )
    },
    options: {
        scales: {
            x: {
                ticks: {
                callback: (val) => (val.toExponential(3))
                }
            }
            }
        }
    }

var ctx = document.getElementById('myChart').getContext('2d');
new Chart(ctx, options);

Engineering notation being defined as an exponent to the power of 3, and 1,2, or 3 digits to the left of the decimal point