Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options not working #2

Closed
mafar opened this issue Sep 17, 2018 · 7 comments
Closed

Options not working #2

mafar opened this issue Sep 17, 2018 · 7 comments

Comments

@mafar
Copy link

mafar commented Sep 17, 2018

can u explain how do i use options from http://www.eclipse.org/elk/reference/
I tried setting direction of chart using
http://www.eclipse.org/elk/reference/options/org-eclipse-elk-direction.html

layout: {
              name: 'elk',
              fit: true,
              elk: {
                direction: 'top',
              },
            }

But nothing happens

@mafar mafar closed this as completed Sep 17, 2018
@jfstephe
Copy link
Collaborator

All good?

@mafar
Copy link
Author

mafar commented Sep 17, 2018

yes had to use

elk: {
                'elk.direction': 'UP',
 },

saw from here kieler/elkjs#27
plz update documentation so it can help others.

options need to be in format

elk:{
      "elk.algorithm": "layered",
      "elk.direction": "RIGHT",
      "elk.padding": "[top=25,left=25,bottom=25,right=25]",
      "elk.spacing.componentComponent": 25,
      "elk.layered.spacing.nodeNodeBetweenLayers": 25,
      "elk.edgeLabels.inline": true,
      "elk.edgeRouting": "SPLINES"
    }

@mafar
Copy link
Author

mafar commented Sep 17, 2018

Please update doc where it says
// All options are available at http://www.eclipse.org/elk/reference.html
// 'org.eclipse.elk.' can be dropped from the Identifier
// Or look at demo.html for an example.

and write some exampleshere like above for new ones to understand

@mafar
Copy link
Author

mafar commented Sep 17, 2018

demo is not working as well

@jfstephe
Copy link
Collaborator

Please raise separate issue for demo.html (I thought it was working), with details.

Is it the specificity of the property name or the casing in the property value that caused you problems?

@mafar
Copy link
Author

mafar commented Sep 17, 2018

specificity of the property name .. let me write u text wait

@mafar
Copy link
Author

mafar commented Sep 17, 2018

// All options are available at http://www.eclipse.org/elk/reference/options.html
 // 'org.eclipse.' can be dropped from the Identifier
 //  for example to change layout option as per doc http://www.eclipse.org/elk/reference/options/org-eclipse-elk-algorithm.html
 //  Identifier is  org.eclipse.elk.algorithm , so use { 'elk.algorithm' : 'box'}
 // 
 // Enums use the name of the enum e.g. 'searchOrder': 'DFS'
//

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants