What's the best way to incorporate a d3 chart into UI5 application?

Hi folks,
I'm on a project which requires to incorporate a d3.js based chart into a UI5 application.( sap.viz library doesn't fullfill )
I'm thinking maybe to extend a sap.ui.core.Control.
But here comes some problems:
1. how to implement the renderer function?
renderManager has the write() method, but this method is to write html strings. But I'll use d3's method to draw the svg elements.
How can I do that?
2. how to achieve responsive ?
I'm not sure how to auto adjust my chart size to the actual device size.
3. how to refresh my chart when data changes
my chart will receive some data from outside. how to refresh my chart when data changes?
Regards,
Aaron.

Hi Dennis,
what I had in mind is:
1. extend control ( I don't know if it's too much overhead )
2. directly operate at the dom level ( there is this sap.ui.core.html class, I don't know if I can use this and how).
But for both above solution. I don't know how to implement and its feasibility.
So I'm asking if someone has done something like this before. Maybe some experiences can be shared.
Regards,
Aaron.

Similar Messages

  • What is the best way to merge a file content into log file

    What is the best way to merge a file content into log file.
    In worst case, I will read the file line by line as string, then use
    logger.info(lineString)to output to log file.
    However, is there better way to do this?
    The eventual log file will be something like:
    log message 1
    log message 2
    content from file line 1
    content from file line 2
    content from file line 3
    log message 3
    log message 4Thanks

    John618 wrote:
    Thank you and let me explain:
    1. What do you mean by better?
    I would like to see better performance. read line by line and log each line as string can be slow. Did you measure this and determine that it is actually a problem for your application? Or are you guessing?
    Regardless of what you do you are still going to need to read the file.
    >
    2.The only better way I can think of is not having to do it, but I assume you have a very good reason to want to do this.
    Yes, I have to do it beacuse the requirement is to have that file content be part of logging.
    Any idea?How is it supposed to be part of it? For example which of the following is better?
            File AAA - contents
                       First Line
                       Second Line XXX
            Log 1
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: First Line
                    2009-03-27 DEBUG: Second Line XXX
                    2009-03-27 DEBUG: Random following line
            Log 2
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: ----- File: AAA -------------
                    First Line
                    Second Line XXX
                    2009-03-27 DEBUG: Random following lineBoth of the above have some advantages and disadvantages.
    The first in a mult-threaded app can end up with intermittent log entries in between lines, so having log lines with thread ids becomes important.
    The first can be created by reading one line at a time and posting one at a time.
    The second can be created by reading the entire file as a single string and then posting using a single log statement.

  • What's the best way to convert a current website into a Fluid Grid Laout?

    As the title says....
    What's the best way to convert a current website into a Fluid Grid Laout?

    See "Using Fluid Grid Layouts (video)"
    http://tv.adobe.com/watch/learn-dreamweaver-cs6/using-fluid-grid-layou ts/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • What's the best way to detect that text fits into ContainerControllers without scrolling?

    Hi.
    Question
    What's the best way to detect that text typed by user (or added programmatically) exceeds available container space and find out where starts truncated part? Is there available some other (than described bellow) easy way to detect it or disallow set of controllers to receive more characters that can be displayed in given composition area?
    My partialy failed attempt (simplified)
    For example lets say that I've got an editable textflow with attached two instances of ContainerController.
    var flow:TextFlow = createSomeFlowFromGivenString(sampleText),
        firstController = new ContainerController(firstSprite, 100, 30),
        lastController = new ContainerController(secondSprite, 600, 30);
    flow.interactionManager = new EditManager(new UndoManager());
    flow.flowComposer.addController(firstController);
    flow.flowComposer.addController(lastController);
    flow.flowComposer.updateAllControllers();
    With enabled vertical scroll policy I can compare height of the composition in last controller with height of the content:
    var bounds:Rectangle = lastController.getContentBounds(),
        overflow:Boolean =  lastController.compositionHeight < bounds.height;
    trace('Content does not fit into given area?', overflow)
    But when I switch vertical scroll policy off (lastController.verticalScrollPolicy = ScrollPolicy.OFF) - unfortunately this no longer works...(In my case scrolling should be dissabled, since text areas might have only one line with restricted width)
    Use case
    I want to create fillable form. Field might have a single or multiple lines. One field might start in the middle of the page, continue in the next line where it spreads through whole page and end in the - quarter of page width long  - third line. Text typed by the user can't exceed given area since it might cover some static text that sits right after/below field.
    Something like ascii image bellow:
    |                <PAGE>                    |
    |                                          |
    |                                          |
    |                                          |
    |               [Field starts here........ | 
    | ........................................ |
    | ........................................ |
    | Ends here..]                             |
    |                                          |
    |                                          |
    | [Another field] xxxx  xxxx xxxxxxxx x xx |
    | xxxxxxxxxxxxxxxxxxx                      |
    |                                          |
    |                              [One more.. |
    | .....]                                   |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    Info:
    [......]  <-- form fields starts with '[' character, and ends with ']'
    xxx       <-- sample, static text
    | and _   <-- page borders

    I've tried something like that previously, but it didn't work because then I've got vertical scroll policy to set to 'auto'. After changing verticalScrollPolicy to ScrollPolicy.OFF  in the last container it worked like a charm.
    Thanks zhen bian

  • What is the best way to plug my iPhone 5 into a mixer for live music performances?

    I'm thinking of performing live with my iPhone 5 or maybe an iPad that I haven't bought yet. What is the best way to get the sound for the device to a mixer or PA? I'm wondering if anyone has any experience with wireless options. I'm wondering if it is stable enough for live performance. There doesn't seem to be any audio interface options yet.

    there is always the 3.5mm minijack out connector sure it's analogue but a cable with male minijack in 1 and and 2 rca in the other would work with most mixers and or pa's

  • What is the Best Way to reimport my iPhoto library into Aperture 2?

    I used the Aperture 1.5 trial version and imported my iPhoto library (most of it anyway).
    I then bought Aperture 2 and I want to reimport my iPhoto library but don't want to screw it up and erase projects and things I've done in Aperture 2.
    Also, I don't like or know how to change the Aperture 2 "folders" under Projects that reference my photos. I want to reimport the photos with dates or something to show what they are (wish Aperture had Events on the left like iPhoto).
    Can anyone tell me the best way to do this so I don't screw up the photo changes (extensive) and projects that I have made in Aperture? I think I just reimport and make sure I don't import duplicates, etc. but I would like some reassurances.
    Also, I have no idea what a vault or a stack is in Aperture.
    Thanks for the help!

    There isn't a way to reimport the iPhoto library yet have it maintain the changes you made to images in Aperture. Now you can upgrade to 2.1 and Aperture will upgrade your current library keeping your changes intact.
    Aperture and iPhoto go about their organization based on different principals. Apple thinks you'll use iPhoto for the snaps from your kids graduation or the family BBQ, hence the events. Aperture, being a professionally oriented program, is based on the idea of projects. That's why they don't have the same structure on the left.
    You can get something similar to iPhoto's events in Aperture however, by clicking on "All Projects" under your library.

  • What's the best way to load FieldPoint measurement data into PI System?

    I am finding the best way to load data collected by NI Field Point (FP2220) into the PI system of our power plant.
    I found pieces of information about FieldPoint OPC server in NI.com. Not sure if it comes with Field Point Hardware, sold by NI as a separate product or it is actually non-standard NI products. Anyway, I know that there exists a thing called FieldPoint OPC server.
    The PI system I mentioned has a OPC client software called PI-OPC interface. It is able to communicate with standard OPC DA server. If that FieldPoint OPC server is a standard OPC DA server provide data collected by Field Point complying to OPC standard, than that's perfect.
    Anyone familar with PI system and NI product, please help if the above is going to work or if there is a better way to put Fieldpoint data into PI.

    Hi Eric,
    This information really helpful, thanks. Regarding to the NI OPC server for NI FieldPoint, I have the other query.
    In my setup, there are two sets of FieldPoint located in two different locations on my ethernet network. They are going to be controlled by a single PC. If I am going to connect both my FieldPoint sets with OPC standard, how many NI OPC server for FieldPoint do I need to connect to? Are there two NI OPC servers each serves one FieldPoint set? Or there is only NI OPC server which serves both FieldPoint sets?
    I am concerning about the number of NI OPC server instances running, because the number of OPC client license I need to purchase depends on how many OPC server I need to connect to. If one NI OPC server serves both my FieldPoint sets, I only need to buy one OPC client license; otherwise, I need to purchase two. In the future, I am going to have another two sets of FieldPoint sets, so the answer of my query determines how many OPC clients I need to purchase eventually - One or four. A huge price difference.
    Looking forward to your reply.
    Regards,
    Roger

  • What is the best way to integrate an ER diagram into BPA?

    Hi,
    In the context of a conversion project, trying to understand what is the lighter and easier way to import an ER diagram into BPA. The tools I'm currently using allow me to generate any xml/text data from current models... but trying to understand the minimal effort so the main semantic of models get kept (not a big deal if fonts, positioning, layout things are lost on the way)
    Attached is an example problem, would be great to see what textual representation denoting the same semantic can be accepted by BPA
    My example model:
    Product(prod_id (pk), name) ---* Order({prod_id, cust_id} (pk), quantity_ordered) * --- Customer (cust_id (pk), cust_name)
    A customer can have 0 to many orders
    A product can be ordered by 0 to many customers
    A order is made for 1 product and 1 customer, and for each order we know the quantity of the product ordered
    if someone has already run integration of large ERds into BPA would be fantastic help to have some hints/feedbacks on your approach best practices
    kind regards
    Frederic

    There is a thrid party product that con convert data models between most tools, including BPA. You can find information about it here: http://www.reischmann.com/. If you just want to migrate the main objects and their characteristics and the diagram is not as important you could look at using Excel as a data transfer medium. The report "Import Data in Excel Format" allows you bring information into BPA quickly, however it is a one time conversion and won't accomodate updates. You could also look at the macro "Process Generator" which also allows for objects to be imported from an Excel SS. Either of the SS solutions will require some configuration.

  • I have a newer Sony FS100,  What is the best way I can get my footage into a workable format?

    It does not appear as an available camera during import mode, and when I try to import my video files any other way they are dimmed out and i can't even click on them. I should hope there will be support in the near future for this camera but until then, is there another application that anyone can suggest that will let me at least work with the video I have?

    Nick -
    This was my first "big" problem for the last 3 days with iMac and FCProX and my new Sony FS100. To make a long story short: Buy the latest versions of ClpWare amd install it (se end of this note). I got it yesterday after a lot of not-useful inreaction  - an then some *very useful interaction* - on this forum.... (and solution came after I began writing to the makers, Divergent.com) -  they knew IMMEDIATELY what was to be the solution for me - and told me/lined me to a (new?) version available that, when I got it, fixed all my SONY FS100U import / AVCHD/MTS problems. I was really overjoyed.
    To get there took almost all day. But I'm a giant step closer, now. Honestly. That is STEP ONE: get the proper version to import your files...it gets MUCH easier to work with the product once you have the native import issue resolved. Lots...
    So, I imported everything from the hi-speed SanDisk 32Gb card, finally, and in beautiful quality, just using the defaut "REWRAP" settings. (I have yet to try to import via the Pro Res or ProRes Proxy settings - but mabe today I will try...time and ENERGY permitting). I feel I need a day off from all of this, completely, after 3 days of angst and disappointment...but ultimately all which lead to a GREAT outcome. So for me it's [next] onto STEP 2: experimenting more with the product features, mastering more of them; outputting the size clips w/effects. etc and quality I want.
    This IS a different animal. But I still suppport it and its advent.
    One thing at a time...it is a huge learning curve since I am actually  working with 3 new technologies all at once (actually more  - that have nothing to do with FCProX video, directly...just indirectly....which I won't get into) - but again, below is the link to a FAST middleware transcoder (ClipWrap) that will get your AVCHD files into your Mac. Hopefully it's a fast Mac.
    I benchmarkd yesterday on both my Intel core5 iMac (very fast) vs. a slower MacBook Pro Core 2 Duo (?) - both have 8 Gb DRMM;  anyway - while the import worked just as well on either machine -  seemilngly just about as quickly on the MBPro, too...the playback from that laptop wasn't as [quite] perfect after rendering a clip, out with defaut settings (to keep things simple, for now)....but that ALSO may be because I decided to play devil's advocte while I was at it and imported/exported both the same AVCHD files to an Firewire 800 external HD on the MBPro, and secondly, re-imported. re-rendered and re-expoerted same clip to the MBPro *internal drive*...just to see what might happen in quality or playback speeds of a re-render. While both worked, the playback (via the "422 and H.264 codec output" experiments I did with the same, short 1.06 min. clip - but with  NO EFFECTS/transitions with that one, (unlike the iMac verison wich I loaded down, every few seconds, with numerous transitions) - the 1.06 min. test clips WERE, not surprisingly, different in playback. The AVCHD imported to and exported from the MBPro internal HD was a bit more "acceptable" in quality...but the import/export from my much faster iMac (internal HD)  tops everything. Hands down. If I do get a Thunderbolt machine...which I MIGHT, God willing and back account still permitting...I hope that new TB 15" fully-qoutfittd MacBook Pro I now have my eye on will result in still-better throughput - and NOT introduce a whole new layer of problems. God - I hope not...then there is LION coming...sheesh! What [new] problems might THAT indroduce???
    One needs to experiment a lot here, but once you are able to get the files in from the cam (finally, and easily) - things start to get way better. After that...it's the learning curve of what input / output settings/decsions suit your needs. That is the NEXT BIG curve ahead...for me at least.
    I really do like FDProX a lot..a REAL lot...but obviously, like allof us, I am still learing it.
    There is a lot to learn, obviously..just read along in this forum! FCProX has its own big "internal" curve to master, when it comes to details.
    I found and have been able to use the Precision Editor.. got a first-ever finally and easily) import of several AVCHD native clips "edited"...but got jumbled up - somewhere - (?) in the Precision Editor  - and over-duped/dubbed some of the part of the clips I cut up to see what would happen. So the end results with that clp were messed up to say the least...but it did output beautifully...I am still confused about the auto/background renderering and o-going "transcoding and analysis" issue....I sotp it and render out to QT format anyway..it seems to work...tho I id end up with the last moments of the PRditor version misssing the last few seconds...which I did OT deliberatelu splice out and delete!!
    Just plain old trial and error...now. Obviously I did something wrong (easy to do in a program as new as FCProX)....but again : I have YET to print out the manual or even read a page of it. So for that - considering how far I've gotten (a "surface scratch" only, still, to be honest) - it's a testament to what the program DOES do by iteself for you that helps you SOME with that learning curve...it's refining the editing/final cut output process for me, now - getting past the kinks or not-obvious pitfalls...I get there...we all will and we'll help one another along....and getting an output that looks and works the way I/we planned for in the final analysis.
    We're all stil learning here. Esp. me. I am out of energy. I've been asleep for the last 6 hours...and am headed back to bed. In 10 minutes!
    Here is the link to purchase the apparently tweaked and PROPER ClipWare version ($50  - worth it!) - and comment from Divergent; as noted: so, in review - I purchased it yesterday, that solved my AVCHD 1080p60 FS100 SONY cam/raw clip import issues and SAVED THE DAY - for now:
    (https://store.divergentmedia.com)  - "you'll receive a serial number which will unlock it after you buy it. It'll automatically update to the final release of 2.4.2 when we release that (after Lion ships)", from what I was told by Divergent.
    Best of luck,
    Mike

  • What is the best way to put LabVIEW DSC data into an Oracle database?

    I have been collecting data using LabVIEW DSC 7.0 for several years and have always accessed the data from the Citadel database via the Historical Data Viewer.  I would now like to begin putting this data into an Oracle database.  My company stores all their data in Oracle and it would provide me all the benefits of their existing infrastructure such as automated backups, data mining tools, etc.
    My initial thought is to use "Read Trace.vi" in LabVIEW to pull historical data from the citadel database at regular intervals (e.g. 1 minute) and insert this data into Oracle via ODBC.  In this way, I do not need to track the value changes in order to know when to write to Oracle.  I also considered replicating the citadel database using some other method, but I recall that the tables used by citadel are somewhat complicated.  I only need a simple table with columns for channel, timestamp, and data.  The "Read Trace.vi" will provide me data in this format.
    I do not need to update the Oracle database in real time, a few minute delay is acceptable. If anyone has a better idea or additional insight please let me know. Thanks.

    In terms of connectivity, you want to use ADO, not ODBC. Beyond that, it all depends on the structure of the data and what you are going to want to do with it. This is a very big question that you need to be getting some in-depth assistance.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • What's the best way to insert a numbers sheet into pages?

    I have some spreadsheets in numbers that I want to insert in pages...somehow it's not so intuitive.
    First of all when I paste them in a pages text box...a part of the sheets fall off the botom of the page
    Even a bigger problem...The should be in landscape...while all my text is in portrait...
    Anybody?
    Thx.

    (1) you can't insert a sheet in Pages. Only tables !
    (2) before pasting your table in Pages, you may resize it so that it may fit in a page.
    (3) the users which took time to look in Pages User Guide are aware of a feature described as : Linking Text Boxes.
    It's a good answer to your problem.
    In a Word Processor document, create a text box and paste your table in the new tex box.
    At the bottom of the box you will see a small square with a symbol plus. It's a flag warning you  that the box contents is too large for the box.
    No problem, insert a page break to force the opening of a new page then read carefully the user guide :
    Applying what I highlighted, you will create a new box linked to the first one so that your table will flow in it.
    If it's not sufficient, you may link a third box …
    More, we are allowed to rotate the text boxes so you may edit them a way allowing them to host your landscape table.
    From my user's point of view, it's absolutely intuitive.
    Yvan KOENIG (VALLAURIS, France) dimanche 26 juin 2011 21:29:56
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • I have a large kodak easyshare library, what is the best way to transfer them into iPhoto ?

    I have about 5k pictures in the kodak easyshare software system on a dell laptop - what is the best way to transfer or import them into iPhoto on my iMac ? any help will be greatly appreciated...

    Simply, export the data from this esy share system to standard formats like jpeg, making sure to preserve all metadata on the way. How to do that? YOu'll need to post on a Kodak forum I'm afraid.
    Then copy the files to the Mac and import them.
    Regards
    TD

  • What is the best way to set up iTunes on our home network so all family members have access to all of our itunes library, even music we don't have on the cloud?

    I have five different people using 10 different apple devices on one itunes account in our family.  We have had trouble sharing.  What is the best way to set up itunes on our home network?  We have purchased music that sits on icloud, but we also have music we have imported from our previous cd library.  Our itunes program keeps crashing and dumping everyone's playlists.  So far we have all been using just the one desktop computer to sync to because we can't figure out how to share the same librarly and playlists on multiple computers in our home so devices can be synced at any location as well as playlists and purchases be made. 

    What is the best way to set up itunes on our home network? 
    One iTunes library per person.  One iTunes account per person.
    If people wish to share songs, they can make copies.
    When the inevitable day comes when the kids get older, you will not have to come back here and post asking how all that stuff can get separated!

  • HT1349 I lost/had my iPhone stolen. Tried using Find My iPhone and it's offline. It was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Tried using Find My iPhone and it's offline. It (Find my iPhone) was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Find My iPhone is good for misplaced iPhone but not good for thief and it was never meant to be.
    You chance of getting it back is very small.
    There are a few things you can try.
    Try remote lock/wipe your iPhone through Find My iPhone.
    https://www.icloud.com
    You can report to the police, cell carrier (expensive cell charges for international calls, roaming etc)
    Change all the passwords used in iPhone: Apple ID, E-mail, Bank Account ....
    http://support.apple.com/kb/HT2526

  • What is the best way to read and manipulate large data in excel files and show them in Sharepoint

    Hi ,
    I have a large excel file that has 700,000 records in it. The excel file has a few columns that change every day.
    What is the best way to read the data form the excel file in fastest and most efficient way.
    2 nd Problem,
    I have one excel file that has many rows each row contain some data that has certain keywords.
    What I want is  to segregate the data of rows into respective sheets(tabs ) in the workbook.
    for example in rows have following data 
    1. Alfa
    2beta
    3 gama
    4beta
    5gama
    6gama
    7alfa
    in excel
    I want there to be 3 tabs now with each of the key words alfa beta and gamma.

    Hi,
    I don't really see any better options for SharePoint. SharePoint use other production called 'Office Web App' to allow users to view/edit Microsoft Office documents (word, excel etc.). But the web version of excel doesn't support that much records as well
    as there's size limitations (probably the default max size is 10MB).
    Regarding second problem, I think you need some custom solutions (like a SharePoint timer job/webpart ) to read and present data.
    However, if you can reduce the excel file records to something near 16k (which is supported rows in web version of excel) then you can use SharePoint Excel service to refresh data automatically in the excel file in SharePoint from some external sources.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

Maybe you are looking for

  • Photoshop Elements 4 and Intel Core 2 Duo?

    Hello All Does Photoshop Elements 4 (Mac) work on the new iMac's with the Intel Core 2 Duo Processors? I need to know before I buy it, I hear some say yes, and others say no. Thanks for your time, I am a new mac owner and I Love it, but I need my pho

  • What is the best notebook stand to get?

    I have been using this flimsy plastic Porta Book notebook stand for about a year - and today it finally broke. http://www.portabooklaptop.com/ I'm looking for another computer stand to replace it - hopefully another one similar to what i had (but hop

  • Cash Balance Negative

    Hi, We want to control Cash GL account for not allowing negative balance at cumulative balance level. We are not using Cash journal. Is there any possibility to control the cash account(GL)? Thanks in advance

  • SO CONFUSING!!!!!!!! PLEASE HELP

    ok so i have a bunch of videos on my computer and most of them open on itunes and i can play them on itunes, but when i grag them to the ipod it says that it doesnt support them. i read other posts about changing the code for them or somthing. i am n

  • Time Machine Freezes - Monitor goes a little crazy...

    Hi - I just updated to Leopard this past week and I have a LaCie external hooked up to my Mac Mini G4 - everything backs up fine onto the external through TM but when I go to actually open the TM program - everything freezes and I get weird lines and