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

EAST STYLE display has issues #1

Open
mahen3d opened this issue Jan 29, 2017 · 8 comments
Open

EAST STYLE display has issues #1

mahen3d opened this issue Jan 29, 2017 · 8 comments

Comments

@mahen3d
Copy link

mahen3d commented Jan 29, 2017

Still lot of issues when you resize the chakra for example to 360, EAST style seems to be going completely wrong. If possible try to display east style using below pattern which is more commonly used in South Asian Countries like Sri Lanka.

stye

@kunjara
Copy link
Owner

kunjara commented Jan 30, 2017

This style in Jyotish Draw is called North like in Jagannatha Hora. Almost all designations are from JH.

@mahen3d
Copy link
Author

mahen3d commented Jan 31, 2017

sorry my fault i updated the correct style,

i had to correct following places in to get working for all the inputs (may be its bcasue my system design i only echo output in the view only.) But check following

In namespace Jyotish\Draw\Plot\Chakra;

public function drawChakra(\Jyotish\Base\Data $Data, $x, $y, array $options = null)
    {
        $this->setData($Data);
        //mahen changed
		if(!empty($options))
			$this->setOptions($options);
-----

**
     * Draw rashi labels.
     */
    private function drawRashiLabel()
    {
        $options = $this->getOptions();
        //mahen changed
        if ($options['labelRashiFont']!="") {
            $this->Renderer->setOptions($options['labelRashiFont']);
        }
-------

  /**
     * Draw body labels.
     * 
     * @param int $x
     * @param int $y
     */
    private function drawBodyLabel($x, $y)
    {
        $options = $this->getOptions();
        $bodyLabelPoints = $this->Chakra->getBodyLabelPoints($x, $y, $options);
        
        foreach ($bodyLabelPoints as $body => $point) {
            //mahen changed
			if (!array_key_exists($body, Graha::$graha) && !empty($options['labelExtraFont'])) {
                $this->Renderer->setOptions($options['labelExtraFont']);
            } elseif ($options['labelGrahaFont']!="") { //mahen changed
                $this->Renderer->setOptions($options['labelGrahaFont']);
            }
            





@kunjara
Copy link
Owner

kunjara commented Jan 31, 2017

Are you using version 1.1.0? Such mistakes should not be in this version.

@nagarajan010
Copy link

nagarajan010 commented May 10, 2018

@mahen3d @kunjara
can you please show how to use this library to draw charts, i have already found how to use the other library to get the calculations just need to know how to use this one to make the chart image

would be really helpful if some one can show an example

Thank you

@shikhardb
Copy link

@nagarajan010 Did you find the solution yet?

@nagarajan010
Copy link

@shikhardb
nope, i had to make my own code for drawing the chart but its not fully done yet

@shikhardb
Copy link

@nagarajan010
Is the chart drawing function done? I'm having issues creating my own charts?

@vaishalithaker
Copy link

Can anyone provide chart rendering inputs code to render teh chart

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

5 participants