Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Code for svg/png in Power BI custom visual
#iothub {
display:inline-block;
*display:inline;
width: 512px;
height: 512px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQBt1gBxxgRx0ghx1gxxzgh1yhB1xhB12hB5yhR5whh52hx9vhh9yiCBtiB92iiFsiCFziyFriiF3jSJqjiNoTCJ3jCN0jyRnUCRnTiNykCRpTiN3kSVmTiR0kiVkTyR3kCR1kCR4lCZjUCV1lWdiUiV4kiZ0kiZ1lmdpV2hhWGhfVCZ4lCd2mWleWGhum2qdVmh2lmh5nGubWGl3mGl5nmyaX2yZWmq5oW2YXmymWmu3om6WYG2hXmyvnGu6nGy3pG+VXmy6pXCUHm24n226pnGSH264oW60qHGRIW66qXKQIW+5o2+0om+4q7OPI2+7o3C5pXC0rLSNJXC7pXG5rrWMLrWOL7WPJ3K6p3K7r7aRMLaTMLaUKXO6qXO8sbeWcreXbLS4q7S7q7S8sreZbbW7s7ibbbW8s7icdLiecrikdLmfb7a9r7e8tbmhdrmjcbe9trqkdrqmd7qnc7i9s7m9uLupeLuqubustbq9tbq+ubyuuryvt7u+uryxu72zuby+u720vL22u72+u72//b63vb65vr67vb6//r/8v//+v///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANZnVsUAAACMdFJOU/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8AcRYuAwAAAAlwSFlzAABcRgAAXEYBFJRDQQAAHPhJREFUeF7tnf1/G8V2h52IYGISc68h0NbArQjuLRjaOJiYktZccwXFocU0wQlOwFBs4qQRYIx5M/jaBJGI7D9dSfuVLVm7q53ZMzNnds7zA/18blezmzmPd+f1zEgkBI0IEDgigHU+f+PsMfc8ee6DztOIAJZp/hURcM8zP7aeRwSwzDOofQ6caBkgAtjlfdQ9D86KAJZpnkLVM+FjEcAuH6LiuXBOBLALnxZgzJMigF3OoeK5cEIEsMuTqHg2iAB2eQT1zgYRwC6odj6IAHZBtfNBBLALqp0PIoBdUO18EAHsgmrngwhgF1Q7H0QAu6Da+SAC2AXVzgcRwC6odj6IAHZBtfNBBLALqp0PIoBdUO18EAHsgmrngwhgF1Q7H0QAu6Da+SAC2AXVzgcRwC6odj6IAHZBtfOhhALs1rvs4H9hBKqdD6USoLFam54c6eXMVG1lF/9fFqDa+VAaAZobC2cQ9aOMz602cJVzUO18KIkA9dlRRDuF6dUmLnULqp0PZRBgf2EcYc6iMruN612CaueD/wLszlcQ4qFM1fEbd6Da+eC7APuzCG4+qq4VQLXzwXMBFod8+geZ3cdP3YBq54PXAtQnEFUVRq/g105AtfPBZwEWEFJVphx2ClHtfPBXgOY04qnOhLuxIVQ7H7wVYDdt2CcPo87agqh2PvgqwPYYYqmJq4YAqp0Pngqwmrvvn8YcSrIMqp0PfgpQQxSLUHXSFES188FLAeYRw2KccTE7gGrng48CXEEEizKN8myCaueDhwLUC3//uyygRIug2vngnwC7yqO/6ayiTHug2vngnQANneHfNCqbKNUaqHY+eCeA/vhfEmO2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qEAjjI2MWIj/5DAWNEDDkUAlmzkGxccXymc3VAEYEp9dmhbYIrifGMRgC3NlazGwMQSTVtJBOBMc2MhqVs4MbdK1lIWAdizuVabrVarYyOjrf9O11bqhb/7vYgAgSMCBI4IEDgiQOCIAIEjAgSOCBA4IkDgiACBIwIEjggQOCJA4IgAgSMCBI4IEDgiQOCIAIEjAgSOCBA4IkDgiACBIwIEjggQOCJA4IgAgSMCBI4IEDgiQOCIAIEjAgSOCBA4IkDgiACBIwIEjggQOCJA4IgAgSMCBI4IEDgiQOAwFIA0D6IwhJHoEdQ7F07hyQQrjER/RsVzIewjY6wzEr2BiufCK3gywQoj0YeoeC58hicTrDASRU+i5nkgh1HbpSXAt6h6HnyLBxPs0BIg+uwUKt89pz6PH0uwRVuA6NfXTyAAbnnk9V87DyXYoyNAi/0v3BP6gYFO6AogBEkU/T+FbwBMqHoxyAAAAABJRU5ErkJggg==);
}
module powerbi.extensibility.visual {
export class Visual implements IVisual {
private target: HTMLElement;
private updateCount: number;
private iotHubSvg = '<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="-783 985 32 32"><style>.st0{fill:#B8D432;} .st1{fill:#0072C6;} .st2{fill:#006DD6;}</style><path class="st0" d="M-763.288 1000.266l-7.074-10.062 1.31-.92 7.073 10.062z"/><path class="st0" d="M-757.03 1011.085l-6.26-10.936 1.388-.796 6.26 10.936z"/><path class="st0" d="M-777.836 1001.936l-.132-1.595 15.248-1.265.132 1.595z"/><path class="st0" d="M-767.31 1009.197l-1.37-.826 5.368-8.907 1.37.826z"/><path class="st1" d="M-751.5 985h-8.1c-.3 0-.5.2-.5.6v2.9c0 .3.2.5.5.5h4.6v4.5c0 .3.2.5.6.5h2.9c.3 0 .5-.2.5-.5v-8c0-.3-.2-.5-.5-.5zM-782.5 1016.9h8.1c.3 0 .5-.2.5-.6v-2.9c0-.3-.2-.5-.5-.5h-4.6v-4.5c0-.3-.2-.5-.6-.5h-2.9c-.3 0-.5.2-.5.5v8c0 .3.2.5.5.5z"/><circle class="st2" cx="-769.6" cy="989.9" r="3.1"/><circle class="st2" cx="-762.5" cy="999.9" r="3.7"/><circle class="st2" cx="-756.3" cy="1010.9" r="2.9"/><circle class="st2" cx="-767.8" cy="1008.9" r="2.5"/><circle class="st2" cx="-777.9" cy="1001.3" r="2.5"/></svg>';
constructor(options: VisualConstructorOptions) {
console.log('Visual constructor', options);
this.target = options.element;
var css = document.createElement('span');
css.id = "iothub";
this.target.appendChild(css);
var svg = document.createElement(null);
svg.innerHTML = this.iotHubSvg;
this.target.appendChild(svg);
}
public update(options: VisualUpdateOptions) {
console.log('Visual update', options);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment