In my last two blog posts (SAP Lumira Visualization Extension - Hello World from SAP Web IDE and Introducing the All-New Visualization SDK for SAP Lumira), I talked about the exciting news of using SAP Web IDE to develop Lumira visualization extensions, the benefits of this new tool and a brief walk-through of a Hello World example. Your next question probably is: "what do I do with my existing visualization extensions created with the built-in VizPacker utility?"
Well, the answer is, you should migrate them to SAP Web IDE. The word "migrate" might sound a bit daunting, but in fact the migration is so straightforward that you might not call it a "migration". Normally it would require the following steps to migrate your existing visualization extension:
var render = function(data, container) { //Do not copy this line
//Retrieve chart properties
var width=this.width(),
height = this.height(),
colorPalette = this.colorPalette(),
properties = this.properties(),
dispatch = this.dispatch();
//Prepare canvas with width and height of container
container.selectAll('svg').remove();
var vis = container.append('svg').attr('width', width).attr('height', height)
.append('g').attr('class', 'vis').attr('width', width).attr('height', height);
...
};
As you can see, there is no code change involved in the migration, so it should just take you a few minutes to transform the existing visualization extension project to Web IDE.
For details on how to create a visualization extension in SAP Web IDE from end to end, refer to my recent webinar recording: https://www.youtube.com/watch?v=ZbWUVhoCLto
Have fun converting your viz projects to Web IDE and start to enjoy the modern IDE for Lumira visualization extension development.
Till next time:)....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Subject | Kudos |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User | Count |
---|---|
43 | |
25 | |
17 | |
15 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 |