4

I use Highchart to designe a chart, but the problems that the link hightchart.com always available,

I user symfony and this is my code:

 $ob = new Highchart();
    // ID de l'élement de DOM que vous utilisez comme conteneur
    $ob->chart->renderTo('chart');

    $ob->chart->type('column');

    $ob->yAxis->title(array('text' => "nombre , sms, fax"));

    $ob->xAxis->title(array('text' => "mois"));
    $ob->xAxis->categories($horizontals);

    $ob->tooltip->headerFormat('<span style="font-size:10px">{point.key}</span><table>');
    $ob->tooltip->pointFormat('<tr><td style="color:{series.color};padding:0">{series.name}: </td><td style="padding:0"><b>{point.y} </b></td></tr>');
    $ob->tooltip->footerFormat('</table>');
    $ob->tooltip->shared(true);
    $ob->tooltip->useHTML(true);

and this is the result

enter image description here

my question is how delete the tow elements 1 and 2

thanks for help

Majdi Taleb
  • 731
  • 3
  • 9
  • 26
  • 1
    Yo remove #1 simply remove `exporting.js` file or set `$ob->exporting->enabled(false)` (or something similar). For #2 see answer below. Anyway, is there any online API for this symphony controller for Highcharts? I haven't found anything like that. – Paweł Fus Feb 04 '16 at 09:45

3 Answers3

8

Set this parameter when declaring Highchart object

credits: {
    enabled: false
},

Here is my example jsfiddle.net/mxx8xpnL

Removing highcharts.com credits link

Davit Mumladze
  • 918
  • 2
  • 9
  • 25
1

for removing a link, you can use this :

 credits: {
    text: 'you text',
    href: false,
 }
RAUSHAN KUMAR
  • 5,846
  • 4
  • 34
  • 70
0
$ob->credits->enabled(false); // For credits
bmagnette
  • 70
  • 2
  • 10
  • How does this answer the question? – Circle B Jun 15 '17 at 22:27
  • This is the command to delete the credits. Here it's 2. He's using the Hightchart bundle for Symfony and don't have any JS because everything is on the controlle if you had this command, it remove the credit and it was a part of the question. – bmagnette Jun 16 '17 at 08:08