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 use this library to draw chart #4

Open
vivekratansinha opened this issue Oct 14, 2019 · 6 comments
Open

How to use this library to draw chart #4

vivekratansinha opened this issue Oct 14, 2019 · 6 comments

Comments

@vivekratansinha
Copy link

I am struggling to draw a chart using the data generated by jyotish library. A simple example would be highly appreciated.

@krishnaguragain
Copy link

krishnaguragain commented Oct 17, 2019

It's addon package for https://github.com/kunjara/jyotish
Please use https://github.com/kunjara/jyotish for calculation and chart generation.

@vivekratansinha
Copy link
Author

@krishnaguragain thank you for your message. I have successfully generated the chart using https://github.com/kunjara/jyotish
I wish to use that output to draw the chart using this library.
A simple PHP example to achieve this would be helpful.

@krishnaguragain
Copy link

@vivekratansinha Currently I don't have any example for it, but you can get through this example kunjara/jyotish#1 (comment). Phpstorm will help you by showing autosuggest.

@HSBSINGH
Copy link

HSBSINGH commented May 9, 2020

@vivekratansinha can you give example how you solved to draw chart using this library. It would be highly appreciated.
Thanks

@vivekratansinha
Copy link
Author

@vivekratansinha can you give example how you solved to draw chart using this library. It would be highly appreciated.
Thanks

@HSBSINGH As per my last message, I only managed to use the https://github.com/kunjara/jyotish, NOT https://github.com/kunjara/jyotish-draw

@HSBSINGH
Copy link

@kunjara
@vivekratansinha

Its required some options parameters, but options are optional as per class not cleared what to pass ...... do you had any idea?

Fatal error: Uncaught Jyotish\Base\Exception\InvalidArgumentException: Options must be an array. in D:\Projects\xampp\htdocs\Astrology\jyotish\vendor\kunjara\jyotish\src\Base\Traits\OptionTrait.php:38 Stack trace: #0 D:\Projects\xampp\htdocs\Astrology\jyotish\vendor\kunjara\jyotish\src\Draw\Plot\Chakra\Renderer.php(127): Jyotish\Draw\Renderer\AbstractRenderer->setOptions('') #1 D:\Projects\xampp\htdocs\Astrology\jyotish\vendor\kunjara\jyotish\src\Draw\Plot\Chakra\Renderer.php(82): Jyotish\Draw\Plot\Chakra\Renderer->drawRashiLabel() #2 D:\Projects\xampp\htdocs\Astrology\jyotish\vendor\kunjara\jyotish\src\Draw\Draw.php(98): Jyotish\Draw\Plot\Chakra\Renderer->drawChakra(Object(Jyotish\Base\Data), 0, 0, NULL) #3 D:\Projects\xampp\htdocs\Astrology\jyotish\index.php(95): Jyotish\Draw\Draw->drawChakra(Object(Jyotish\Base\Data), 0, 0) #4 {main} thrown in D:\Projects\xampp\htdocs\Astrology\jyotish\vendor\kunjara\jyotish\src\Base\Traits\OptionTrait.php on line 38

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

3 participants