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

Displaying chart values as a numbers, not as percentages. #313

Open
mohitlandge opened this issue Aug 16, 2019 · 1 comment
Open

Displaying chart values as a numbers, not as percentages. #313

mohitlandge opened this issue Aug 16, 2019 · 1 comment

Comments

@mohitlandge
Copy link

			$lava = new Lavacharts;
			$Popularity = $lava->DataTable();

			$Popularity->addStringColumn('Country')
			        ->addNumberColumn('Popularity')
			        ->addRow(['Ontime',
			         $count['ontime_percent']
			        	])
			        ->addRow(['Delayed',
			        	$count['delayed_percent']
			        	])
			        ->addRow(['Incompleted',
			        	$count['incomplete_percent']
			        	]);
			$lava->DonutChart('Popularity', $Popularity, [
	            'is3D' => false,
	            'height' => 350,
	            'width' => 450,
	             'legend' => ['layout' => 'vertical', 'align' => 'left', 'verticalAlign' => 'middle', 'itemMarginTop' => 100,'itemMarginBottom' => 10,],,
	    			'pieHole' => 0.4
				]);

			$chartTemplate = View::make('vnnogile::dash.lavacharts', ['lava' => $lava, "id" => "timely_completion_chart", 'hideNewBtn' => true])->render();
@mohitlandge mohitlandge changed the title I want to show chart values as a number not as percentage which is default.I have used c3 types charts of consoletvs. I want to show chart values as a number not as percentage which is default.I have used lavacharts. Aug 17, 2019
@kevinkhill
Copy link
Owner

I'm not sure what you are doing with this line

$chartTemplate = View::make('vnnogile::dash.lavacharts', ['lava' => $lava, "id" => "timely_completion_chart", 'hideNewBtn' => true])->render();

Have you looked at the examples of how to render charts?

@kevinkhill kevinkhill changed the title I want to show chart values as a number not as percentage which is default.I have used lavacharts. Displaying chart values as a numbers, not as percentages. Aug 30, 2019
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