I have been using KNIME 2.7.4 for running analysis algorithm. I have integrated KNIME with our existing application to run in BATCH mode using the below command.
Knime provide different kinds of plot which I want to use. However I am running the workflow in batch mode. Is there any option in KNIME where I can specify the Node Id and "View" option as a parameter to KNIME_BATCH_APPLICATION.
Would need suggestion or guidance to achieve this functionality.
I don't think that there is a way to convince the batch executor to open the view of a specific node - this would not really fit into the concept of a command line execution.
You don't specify which plot you are interested in. However, some nodes (those with a view output port) allow you write their view into an output file in the workflow. This might allow you to export the desired view into a file and display it somehow else (e.g. in your existing application).
You can also use the Table R View node (not sure of the exact name!) - generate whatever plot you like using R scripting in the node, and then send the resulting image either to a file with the image port writer node or to a report with the image to report node, and then use as you wish. This way, you can put together just about any plot you can think of (f you are familiar with R!)
I think what you are looking for might best solved by using KNIME reporting and BIRT Interactive Viewer. (Although I have not tried the latter.)
An alternative might be (soonish) to use my (to be community extension) extension for Vega and probably add an option to open the generated figure in the web browser on execution. That would be easy to add, although it might cause problems when there are multiple Vega Viewers are added or the browser loading the web page is not fast enough (batch execution stops the web server before it served the browser rendering the page). Would you be interested in a solution? Should I add on option like that? (Testing would be welcome.)
I have updated the documentation and finished the option to open the figure (as drawn on canvas) in a browser (as I understood that was your use case). Maybe a separate preference in KNIME would be better to specify the port (currently it is 9999 both for the configuration preview and for the result in the batch execution) of it.
Thanks in advance for the feedback. I hope it will be built as a community contribution soon and people will find it useful.
,axisLabelX
,axisLabelY
,dcds // data
,PlotOrientation.VERTICAL // the plot orientation
,doLegend // legend
,true // tooltips
,true // urls
);
That having been said, I would suggest the better direction for development would be to port xml wrappered output (or minimally json output) for consumption thru D3.js The JFreeChart capabilities have been surpassed, and the learning curve to D3.js functionality is less steep.