Skip to content

Instantly share code, notes, and snippets.

@jsphkhan
Created June 15, 2014 12:02
Show Gist options
  • Save jsphkhan/d5246bdbee5910adc7d9 to your computer and use it in GitHub Desktop.
Save jsphkhan/d5246bdbee5910adc7d9 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../custom-element/my-element-with-d3-chart.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_menu core-item.core-selected {
background: rgb(204, 204, 204);
}
core-drawer-panel[narrow] #core_icon_button {
display: inline-block;
}
#my_element_with_d3_chart {
left: 260px;
top: 200px;
position: absolute;
}
</style>
<my-element-with-d3-chart id="my_element_with_d3_chart" data="[100,20,30,48,59]"></my-element-with-d3-chart>
</template>
<script>
Polymer('my-element', {
item: [object HTMLElement]
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment