Posts by Rodrigo Segatto • 743 points
44 posts
-
0
votes1
answer656
viewsA: Tooltip Chart JS Line Chart
Put this code inside "options" and it will work. tooltips: { callbacks: { title: function() { return ''; }, label: function(tooltipItem, data) { return tooltipItem.yLabel + " %"; } } }…
chartjsanswered Rodrigo Segatto 743 -
0
votes1
answer901
viewsQ: Median Line JS Chart Line
I have a chart like the image below in Chartjs: It is possible to draw a straight line that shows the average of the values as in the image below? Graphic Code: $(function () { new…
chartjsasked Rodrigo Segatto 743 -
0
votes1
answer656
viewsQ: Tooltip Chart JS Line Chart
In the image follows Line Graph I have. I would like the tooltip to come out as an example below: 80% Instead of the way it is: 03 : 80 Graphic Code: $(function () { new…
chartjsasked Rodrigo Segatto 743 -
0
votes1
answer32
viewsQ: Mouse click on <TR> of the table do not trigger the last <td>
Below I have a row of a table. This row can be marked by clicking on any location of it with the mouse triggering an event click. However, specifically on the button, I do not want the javascript…
-
0
votes0
answers31
viewsQ: Private variable being added to php automatically
I will try to explain the problem, however, I have already said that I could not even find words to research what happened: I have a file php user. <?php class Usuario{ private $grupoPermissao =…
-
1
votes1
answer97
viewsQ: Log Shell cakephp
I have a SHELL file in cakephp as below: <?php class AtualizarIndicadoresNormaisShell extends AppShell { public function atualizar() { //Chama model e sua action…
-
0
votes1
answer44
viewsQ: Does not redirect
I have the code below right at the top of a page. I am going to it without passing ID through GET, so you are entering ELSE correctly. It is going through setFlash, but does not redirect the page…
-
0
votes1
answer64
viewsQ: Show chartJS chart even if you don’t have data
There is a way to display the columns of the Chartjs Barchart chart, even if they do not have data to display?
chartjsasked Rodrigo Segatto 743 -
0
votes2
answers410
viewsQ: Decrease the number of bars on the Barchart Chart js chart
How can I decrease the number of bars to be displayed according to the month we are? Ec: currently our month is 11 (Nov), so I would like to present only the first 10 columns of the chart.…
chartjsasked Rodrigo Segatto 743 -
4
votes2
answers1185
viewsQ: Dynamic calculations php
Is it possible to make a calculation in php, and my mathematical operations are in a variable? Ex: $operacao = '+'; $valor1 = 10; $valor2 = 10; $calculo = $valor1 .$operacao. $valor2; It would have…
phpasked Rodrigo Segatto 743 -
2
votes2
answers875
viewsQ: Concatenating Javascript Object
I have the following javascript array: for(var k in lista) { for(var x in lista[k]){ var donutData = [ {label: x, data: lista[k][x], color: "#3c8dbc"} ]; } } At the end I would like the donutData…
-
1
votes1
answer1010
viewsQ: Decrease columns Chartjs Bar Chart
Does anyone know how I can work with the size and width of the blue columns within the Chartjs Bar Chart chart? Following image example. I’d like to keep the columns thinner and farther apart from…
chartjsasked Rodrigo Segatto 743 -
5
votes1
answer1721
viewsQ: Arduino mandar GET to PHP page
I have the following code on the Arduin: #include <SPI.h> #include <Ethernet.h> #include "DHT.h" #define DHTPIN 2 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); byte mac[] = { 0xDE,…
arduinoasked Rodrigo Segatto 743 -
1
votes0
answers604
viewsQ: Chart JS - Insert Label in the Center of Doughnut Charts
I have a chart like Doughnut Charts - http://www.chartjs.org/ - and would like the Label to be present at the center of the chart. Would you know if this is possible?…
chartjsasked Rodrigo Segatto 743 -
3
votes1
answer392
viewsQ: foreach javascript array
I have the following script: var data = JSON.parse( '<?php echo json_encode($lista_tipo_indicadores) ?>' ); var cores = JSON.parse('<?php echo json_encode($cores) ?>'); // Quantidade de…
-
-1
votes2
answers2381
viewsQ: Label and Caption on Chartjs Doughnut Charts
Would anyone know how to include Caption and Label above the chart in this type below? http://www.chartjs.org/docs/#doughnut-pie-Chart I created mine, but I’ve already entered all the options of the…
chartjsasked Rodrigo Segatto 743 -
2
votes1
answer290
viewsQ: Active class in the menu using include
On my php pages I use a include to call a file that contains my menu: <?php include('../../sidebar-menu.php'); ?> Menu file: <ul class="sidebar-menu" id="nav-accordion"> <?php foreach…
-
3
votes4
answers721
viewsQ: foreach php inside <script>
Could you tell me if the use of this code is wrong: <script type="text/javascript"> <?php foreach ($lista as $key => $value) { $id_indicador = $lista[$key]['id']; ?> var id_indicador…
-
7
votes4
answers16671
viewsQ: Synchronous Xmlhttprequest error on the main thread is deprecated
When I use this code in my file, an error occurs in the log, and ends up giving problems in other javascript calls. Current page file (the problem javascript is at the end): <html>…
-
1
votes1
answer512
viewsQ: find word inside array strings
I’m using the following code: foreach ($lista_grupos as $key => $value) { if(strpos($lista_grupos[$key],'Tecnologia_da_Informacao')===true){ $admin = true; }else{ $admin = false; } } But it…
-
0
votes2
answers918
viewsQ: Receive form name or Submit PHP
How can I receive in a function of another page the form name or Submit sent through POST? <form class="form-inline" name="indicador" method="post" action="funcoes/indicadores.php" >…
-
0
votes1
answer261
viewsQ: Load div only after clicking on specific ID
I have the following excerpt: <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion"…
-
1
votes2
answers4017
viewsQ: Load Javascript function when opening the page
I don’t know much about it, but I’ll try to explain. Currently when I pass the mouse over a div with class tooltips, the script below is executed: $('.tooltips').tooltip(); However, I would like…
-
2
votes2
answers5870
viewsQ: Insert gif 'loading' while performing function
I have a Submit button inside a form, which sends an action to another function file. In this file funcoes.php will run a function and return to the current page. While performing this function,…
-
0
votes3
answers5145
viewsQ: Pick number after comma
Working with plsql I am dividing two numbers, and I would like to receive only what comes after the comma. Ex: 7,89111. I need only number 89111.
-
1
votes1
answer79
viewsQ: Override PL-SQL condition
I have a condition, like this one below, in a query. If you receive the empty parameter or with 0, I would like this condition to cease to exist, or be nullified, so that the query search for all…
pl-sqlasked Rodrigo Segatto 743 -
1
votes1
answer701
viewsQ: Disable class when closing modal
I have the following JS for my modal: <script type="text/javascript"> $('#modal').modal('hide'); $('.linkModal').on('click', function(event){ event.preventDefault(); var title =…
-
1
votes1
answer128
viewsQ: Print colorful icone
Good Morning, I have an icon on the red HTML page: <i class="fa fa-circle fa-2x text-danger"></i> When I have it printed, it turns black and white. There is a way to change this with…
-
4
votes1
answer329
viewsQ: HTML printing - PHP
Next... I have an HTML structure formed by TABS, the style of these link: http://www.codecovers.eu/materialadmin/ui/tabs#second1 But when printing with Ctrl+p just call the TAB that is Active. How…
-
0
votes1
answer2015
viewsQ: Open PHP link in another browser
I would like to open a link that I have on my page in a specific browser (IE). For example, if I am using Google Chrome, I would like to open the link in Internet Explorer when clicked. Is there a…
-
0
votes1
answer180
viewsQ: Sep::Sort Cakephp array
I need to sort an array in cakephp according to the order passed by parameter. The code that makes the ordering would be this: //Realizar a ordenação de acordo com o que receber do formulário no…
-
2
votes1
answer4783
viewsQ: remove duplicate values in multidimensional array
I have a huge multidimensional array and need to remove duplicate values with PHP or some function that does this when using Cakephp. Array structure: Array ( [0] => Array ( [Advertencia] =>…
-
2
votes1
answer368
viewsQ: Portuguese Language for Date in Joomla, PHP
I am working with a module of events in joomla and when showing the date of the event the same does in the English language. Has the following code in one of the module files: <span…
-
0
votes0
answers43
viewsQ: Component Jea Joomla
I have a PHP code inside a real estate component I’m using. <fieldset> <legend><?php echo JText::_('COM_JEA_LOCALIZATION')?></legend> <?php foreach…
joomlaasked Rodrigo Segatto 743 -
2
votes1
answer1517
viewsQ: Passing variable to modal
I have a modal that opens at the end of an action (Example: Disable User). I am building the modal and wanted it to receive the text present in an ajax variable. Check code: $.ajax({ url:…
-
2
votes1
answer336
viewsQ: Change font color of a cell Table with ajax
Let’s say I have the following table: I have an option that I click to activate the users selected by the checkbox. Everything already working and even occurs the activation of users. I am using…
-
1
votes1
answer640
viewsQ: Pass array of a checkbox as parameter
I am developing in PHP a basic system, and on the home screen I am listing all registered users. For each user, I have a checkbox that receives the value of the user code. I would like you to check…
-
0
votes1
answer71
viewsQ: Arraylist adding undue values
I have a ArrayList that should be receiving numbers from 0 to 15, within a for, however it seems that is getting recorded in all indexes the last value 15. ArrayList <PaginaPrincipalSO>…
-
10
votes3
answers13854
viewsQ: Fill string with zeros on the left
I’m doing a work of Operating Systems and need to turn decimal numbers into binaries. So far so good, because the method below takes an integer and converts to binary. My problem is the following:…
-
2
votes2
answers4787
viewsQ: IF syntax inside an ECHO
I’m having a syntax problem trying to place a if within a echo in PHP. Check out the code: foreach($resultadoBusca as $escrever){ echo "<tr><td>" . $escrever['cod_votoran'] .…
-
0
votes1
answer1421
viewsQ: Clear URL Parameters after include
When I pass parameters in the URL to a particular file through a GET, and this file makes the necessary changes, it has a include to return the home page of the action performed. When you return to…
-
0
votes4
answers1762
viewsQ: Add element in List (Arraylist)
I’m having trouble adding values that are in a list called Processes to the Aptos list. Always shows only the last process, and in duplicate form. Still removes all previous processes. Code below:…
-
1
votes2
answers756
viewsQ: Treat ranges between two Time Mysql fields
I have a table Atendimento in my comic book. Inside it I have two fields that are: HrIni which refers to the initial and other time HrFim which refers to the final time. I need each record of these…
-
5
votes5
answers6853
viewsQ: Convert Date field data to Mysql month
In a comic book table I have a 'Data' field (0000-00-00) and I need to do the following: Create a field next to 'Month' that takes the date Ex: 2014-08-27 and pass the value 'August' to the month…