Polymer 1.x:google-chart是否通过polygit暂时关闭?

时间:2016-02-28 15:24:08

标签: polymer polymer-1.0 polygit

通过copypasting In this jsBin, I am trying to display a google-chart element

the first example from the docs page here。但图表不显示。

任何人都可以确认或拒绝我的假设,即bin无法正常工作的原因是polygit2.appspot.com similar to this case of two days ago处的类似临时 服务器问题}})?或者需要修复的代码有问题吗?

http://jsbin.com/dusaqaqaje/edit?html,console,output
<!doctype html>
<head>
  <meta charset="utf-8">
  <!---- >
  <base href="https://polygit.org/components/">
  <!---- >
  Toggle below/above as backup when server is down
  <!---->
  <base href="https://polygit2.appspot.com/components/">
  <!---->
  <script src="webcomponentsjs/webcomponents-lite.min.js"></script>
  <link href="polymer/polymer.html" rel="import">
  <link href="paper-button/paper-button.html" rel="import">
  <link href="google-chart/google-chart.html" rel="import">
</head>
<body>

<dom-module id="x-element">

<template>
  <style></style>

<paper-button on-tap="_handleTap">Click Me</paper-button>

<!---- >
  Below is just a copypaste from the docs page here:
  https://elements.polymer-project.org/elements/google-chart
<!---->
<google-chart
  type='pie'
  options='{"title": "Distribution of days in 2001Q1"}'
  cols='[{"label":"Month", "type":"string"}, {"label":"Days", "type":"number"}]'
  rows='[["Jan", 31],["Feb", 28],["Mar", 31]]'>
</google-chart>

</template>

<script>
  (function(){
    Polymer({
      is: "x-element",
      properties: {
      },
      _handleTap: function() {
        console.log('You clicked me!');
      },
    });
  })();
</script>

</dom-module>

<x-element></x-element>

</body>

1 个答案:

答案 0 :(得分:1)

我认为这是一个临时服务器问题,正如您已经提出的那样。通过polygit导入此google-chart元素只会引发错误而不是提供元素(you may see this behaviour in your import link)。

希望很快就会修复。