Unable to use https://chart.googleapis.com for generating charts

394 views
Skip to first unread message

Kasturi Gottivedu Shriniwas

unread,
Apr 16, 2024, 8:12:03 PMApr 16
to Google Visualization API
hi,
I was using the https://chart.googleapis.com/chart to generate charts with reporty.

 I was able to produce charts till April 12 2024. However, I get 404 not found error now. Is it no longer working ?


Regards,
Kasturi

RADHWEN DALY HAMDOUNI

unread,
Apr 19, 2024, 5:55:57 PMApr 19
to Google Visualization API
Try this code ! 
    public function getQRCodeGoogleUrl($name, $secret, $title = null, $params = array())
    {
        $width = !empty($params['width']) && (int) $params['width'] > 0 ? (int) $params['width'] : 200;
        $height = !empty($params['height']) && (int) $params['height'] > 0 ? (int) $params['height'] : 200;
        $level = !empty($params['level']) && array_search($params['level'], array('L', 'M', 'Q', 'H')) !== false ? $params['level'] : 'M';

        $urlencoded = urlencode('otpauth://totp/'.$name.'?secret='.$secret.'');
        if (isset($title)) {
            $urlencoded .= urlencode('&issuer='.urlencode($title));
        }

        return "https://api.qrserver.com/v1/create-qr-code/?data=$urlencoded&size=${width}x${height}&ecc=$level";
    }

Pavel Pindora

unread,
Apr 25, 2024, 9:12:15 PMApr 25
to google-visua...@googlegroups.com
hi, I updated the old version of the charts to the new one, I have an application in asp.net C#.

            function drawChartPAA() {

                //const rowsChart = []; // [1, 7.8, 2.8];
                var dataChart = [];
                var strngData = '<%= PV_BAT_A_HISTORIE %>';//[];
                var strngSTRG = strngData.split(';');
                for (i = 0; i < strngSTRG.length; i++) {
                    var strngVALU = strngSTRG[i].split(',')
                    if (strngVALU[0].length > 0) {
                        dataChart[i] = [];
                        dataChart[i][0] = parseFloat(strngVALU[0]);
                        dataChart[i][1] = parseFloat(strngVALU[1]);
                        dataChart[i][2] = parseFloat(strngVALU[2]);
                    }
                }


pá 19. 4. 2024 v 23:55 odesílatel RADHWEN DALY HAMDOUNI <radhwenda...@gmail.com> napsal:
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/1a5bffb4-cf26-4346-ad34-d6345650bc14n%40googlegroups.com.
GChartNew.png
Reply all
Reply to author
Forward
0 new messages