Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author martynasma

    (@martynasma)

    Hi there.

    it seems you are using API methods to add items like legend and title after the chart has already been created. (using makeChart() function builds the chart immediately)

    To fix that you need to add your legend and title into JSON config:

    var %CHART% = AmCharts.makeChart("%CHART%", {
      .....
      creditsPosition: "top-right",
      legend: {
        color: "#ffffff",
        align: "center",
        markerType: "line",
        divId: "legenddiv"
      },
      titles: [{
        text: "Critère de Kelly Vs Mise à taux fixe",
        size: 16
      }],
      allLabels: [{
        x: 7,
        y: 40,
        text: "Part de la Bank Roll engagée (en %)",
        align: "left",
        size: 13,
        color: "#ffffff",
        alpha: 1,
        rotation: -30,
        bold: false
      }]
    });

    Does this make sense?

    Thread Starter Mercure

    (@thedutching)

    Thanks, it makes sense!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘legend and tittle do not display’ is closed to new replies.