Jigen
Jigen

Reputation: 465

Anychart cookie problem, SameSite attribute

I added a tagCloud chart from Anychart in my landing page but I find this warning and chart isn't visible since few days.

This is the warning I get SameSite attribute warning

This is the script

<script src="https://cdn.anychart.com/releases/v8/js/anychart-base.min.js"></script>
<script src="https://cdn.anychart.com/releases/v8/js/anychart-tag-cloud.min.js"></script>

Is there a workaround?

Thanks.

Update

I configured the chart like this

    anychart.onDocumentReady(function() {

      var data = [
        {"x": "Family", "value": 10, category: "Family"},
        {"x": "Friends", "value": 10, category: "Friends"}
      ];

      var chart = anychart.tagCloud(data);
      var tooltip = chart.tooltip();
      chart.tooltip().useHtml(true);
      tooltip.positionMode("point");
      tooltip.format("Goal steps: <b>{%value}");

      chart.tooltip(false);

      chart.angles([0])

      chart.container("wordCloudChart");

      var dict = {
        "Family": "https://www.google.com",
        "Friends": "https://www.google.it"
      };

      chart.listen("pointClick", function(e){
        for(var key in dict) {
        var valueSelected = dict[e.point.get("x")];
        window.open(valueSelected, "_blank");
        }
      });

      chart.background().fill({
      keys: ["#2a2a2a", "#2a2a2a", "#2a2a2a"],
      angle: 130,
      });

      chart.tooltip().format(function(e){
      var value = ((this.value)*100)/200000;
      return "Value: " + value + "%";
      });

      chart.scale(anychart.scales.linear());

      chart.draw();
    });

Upvotes: 0

Views: 161

Answers (1)

AnyChart Support
AnyChart Support

Reputation: 3905

After recreation of your particular situation, there was no problem as you've described. Let us know if the issue persists.

We hope that this issue did not affect your website's accessibility or performance. Also, we did notify our development team about this possible problem.

Upvotes: 0

Related Questions