patrickmonaco / resource_diagram_plugin

An Oracle APEX plugin which displays data as a VIS resource diagram
MIT License
2 stars 0 forks source link

Timeline Axis orientation #3

Open BernhardFW opened 5 years ago

BernhardFW commented 5 years ago

Hi Patrick, thanks for ur work on this nice plugin ! I tried to switch the axis orientation from bottom (default) to top... but it did not work. I added code far below... with no effect: Any idea? Enhancement for the plugin/suggestion: Put the orientation within the paarameters of the plugin. Thanks Bernhard

..... // create visualization var container = document.getElementById("visualization"); var options = { groupOrder: ''content'', ' || CASE when flag_edit = 'true' then ' editable: { add: true, // add new items by double tapping updateTime: true, // drag items horizontally updateGroup: true, // drag items from one group to another remove: true, // delete an item by tapping the delete button top right overrideItems: false // allow these options to override item.editable },' END || ' onAdd: function (item, callback){ editTask("add",items,item,callback); }, onUpdate: function (item, callback){ editTask("update",items,item,callback); }, onMove: function (item, callback) { editTask("move",items,item,callback);

}, onRemove: function (item, callback){ editTask("remove",items,item,callback);
}, locale: "'|| l_locale ||'",
tooltipOnItemUpdateTime: true
// min: "2019-03-03", // lower limit of visible range // max: "2019-03-07", // upper limit of visible range // , zoomMin: 1000 60 60 24 // one day in milliseconds , zoomMin: '|| l_zoommin ||'
// zoomMax: 1000
60 60 24 31 3 // about three months in milliseconds }, { orientation: { axis: "top", item: "top" } }; // orientation: {axis: "top" };

timeline = new vis.Timeline(container, items, groups, options);

patrickmonaco commented 5 years ago

Hi Bernhard, Thank you for your mail and suggestionsI'm out of office right now, but when i'll be back (a couple of days), I'll take time to inspect the subject. Regards, Patrick Patrick Monaco

Envoyé depuis Yahoo Mail pour Android

Le mer., juil. 17, 2019 à 9:49, Bernhard Fischer-Waselsnotifications@github.com a écrit :
Hi Patrick, thanks for ur work on this nice plugin ! I tried to switch the axis orientation from bottom (default) to top... but it did not work. I added code far below... with no effect: Any idea? Enhancement for the plugin/suggestion: Put the orientation within the paarameters of the plugin. Thanks Bernhard

..... // create visualization var container = document.getElementById("visualization"); var options = { groupOrder: ''content'', ' || CASE when flag_edit = 'true' then ' editable: { add: true, // add new items by double tapping updateTime: true, // drag items horizontally updateGroup: true, // drag items from one group to another remove: true, // delete an item by tapping the delete button top right overrideItems: false // allow these options to override item.editable },' END || ' onAdd: function (item, callback){ editTask("add",items,item,callback); }, onUpdate: function (item, callback){ editTask("update",items,item,callback); }, onMove: function (item, callback) { editTask("move",items,item,callback);

}, onRemove: function (item, callback){ editTask("remove",items,item,callback); }, locale: "'|| l_locale ||'", tooltipOnItemUpdateTime: true // min: "2019-03-03", // lower limit of visible range // max: "2019-03-07", // upper limit of visible range // , zoomMin: 1000 60 60 24 // one day in milliseconds , zoomMin: '|| l_zoommin ||' // zoomMax: 1000 60 60 24 31 3 // about three months in milliseconds }, { orientation: { axis: "top", item: "top" } }; // orientation: {axis: "top" };

timeline = new vis.Timeline(container, items, groups, options);

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

patrickmonaco commented 5 years ago

Hi Bernhard, try below instead. I tested it, it's ok.

tooltipOnItemUpdateTime: true// Modif 26-07   ,orientation: {      axis: "top",      item: "top"    }// end modif 26-07// min: "2019-03-03",                // lower limit of visible range// max: "2019-03-07",                // upper limit of visible range// , zoomMin: 1000 60 60 * 24    // one day in milliseconds    I'll take time to add a new parameter in the version 1.2 of plugin. Thank you for your suggestions!

Patrick

Le mercredi 17 juillet 2019 à 09:49:11 UTC+2, Bernhard Fischer-Wasels <notifications@github.com> a écrit :  

Hi Patrick, thanks for ur work on this nice plugin ! I tried to switch the axis orientation from bottom (default) to top... but it did not work. I added code far below... with no effect: Any idea? Enhancement for the plugin/suggestion: Put the orientation within the paarameters of the plugin. Thanks Bernhard

..... // create visualization var container = document.getElementById("visualization"); var options = { groupOrder: ''content'', ' || CASE when flag_edit = 'true' then ' editable: { add: true, // add new items by double tapping updateTime: true, // drag items horizontally updateGroup: true, // drag items from one group to another remove: true, // delete an item by tapping the delete button top right overrideItems: false // allow these options to override item.editable },' END || ' onAdd: function (item, callback){ editTask("add",items,item,callback); }, onUpdate: function (item, callback){ editTask("update",items,item,callback); }, onMove: function (item, callback) { editTask("move",items,item,callback);

}, onRemove: function (item, callback){ editTask("remove",items,item,callback); }, locale: "'|| l_locale ||'", tooltipOnItemUpdateTime: true // min: "2019-03-03", // lower limit of visible range // max: "2019-03-07", // upper limit of visible range // , zoomMin: 1000 60 60 24 // one day in milliseconds , zoomMin: '|| l_zoommin ||' // zoomMax: 1000 60 60 24 31 3 // about three months in milliseconds }, { orientation: { axis: "top", item: "top" } }; // orientation: {axis: "top" };

timeline = new vis.Timeline(container, items, groups, options);

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.