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

How to run it? #1

Open
mzxhtml opened this issue May 20, 2020 · 1 comment
Open

How to run it? #1

mzxhtml opened this issue May 20, 2020 · 1 comment

Comments

@mzxhtml
Copy link

mzxhtml commented May 20, 2020

No description provided.

@osoznan
Copy link
Owner

osoznan commented Jun 10, 2020

Hello! Thank you for your question. I'm sorry for being late with my answer. I corrected some things in the Vulkan component. Installation is made by:

composer require osoznan/vulkan-astrosystem

You can use this code like a component demonstration (a random chart creation):

use vulkan\front\Examples\ChartGenerator;
use vulkan\System\Vulkan;
use vulkan\VisualChart\VisualChart;

Vulkan::initialize(); // setup the astrological system
Vulkan::insertCss('light-chart.css'); // insert css to a document for chart display

// run class for a demo which shows in general how to create charts
$ch = new ChartGenerator();

// creation of chart with random params received from the demo class
$vc = new VisualChart($ch->randChart(5, 2));

// calculate chart and run it with the given width and height
echo $vc->calculate()->run(800, 800);

I'll try to write the general help about the Vulkan in some days. I've been thinking last year about reanimation of the component's development, you motivated to do it more quickly, thanks :-).

If you have any questions, feel free to ask them.

Best regards.

P.S. A random chart example

Снимок

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