laravel-er-diagram-generator icon indicating copy to clipboard operation
laravel-er-diagram-generator copied to clipboard

Stylizing graph

Open loic-lopez opened this issue 6 years ago • 6 comments

Hello,

Someone knows good settings for generate a beautiful diagram?

Thanks for reply?

loic-lopez avatar Nov 08 '18 06:11 loic-lopez

Hi @loic-lopez,

You can style it on the config settings:

    /*
     * Here you can define all the available Graphviz attributes that should be applied to your graph,
     * to its nodes and to the edge (the connection between the nodes). Depending on the size of
     * your diagram, different settings might produce better looking results for you.
     *
     * See http://www.graphviz.org/doc/info/attrs.html#d:label for a full list of attributes.
     */
    'graph' => [
        'style' => 'filled',
        'bgcolor' => '#F7F7F7',
        'fontsize' => 12,
        'labelloc' => 't',
        'concentrate' => true,
        'splines' => 'polyline',
        'overlap' => false,
        'nodesep' => 1,
        'rankdir' => 'LR',
        'pad' => 0.5,
        'ranksep' => 2,
        'esep' => true,
        'fontname' => 'Helvetica Neue'
    ],

Publish the config options: php artisan vendor:publish --provider=BeyondCode\\ErdGenerator\\ErdGeneratorServiceProvider

And then change whatever you need or want.

diogogomeswww avatar Nov 15 '18 18:11 diogogomeswww

Hi, thanks for reply but i just ask for the best preset for generate a diagram.

loic-lopez avatar Nov 15 '18 21:11 loic-lopez

@diogogomeswww like in the readme: image

loic-lopez avatar Nov 26 '18 22:11 loic-lopez

I second this question. its confusing that the example in the readme looks nothing like the default settings in the erd-generator.php config file

ahren-condos-ca avatar Oct 23 '19 14:10 ahren-condos-ca

Same here. Would be nice to have that config file included as well.

swatty007 avatar Apr 09 '20 11:04 swatty007

Do you have the config for the diagram with the entity members.

Zanark avatar May 14 '20 13:05 Zanark