I need a log function for JavaScript, but it needs to be base 10. I can't see any listing for this, so I'm assuming it's not possible. Are there any math wizards out there who know a solution for this?...
I have a slider with values ranging from 0 to 100.  I want to map them to a range from 100 to 10,000,000.  I've seen some functions scattered around the net but they're all in C++.  I need it in Javascript.  Any ideas?...
I'm trying to get a logarithmic scale for the y-axis of a morris.js line chart.  http://www.oesmith.co.uk/morris.js/lines.html  I already tried playing with the yLabelFormat option, but it's not what I need. Any hint is appreciated.   If ther...
I want to calculate the length of a line for a series of events.  I'm doing this with the following code.    var maxLineLength = 20; var lineLen = function(x, max) {     return maxLineLength * (x / max); } var events = [0.1, 1, 5, 20, 50]; var ma...
I have the a stacked column chart with a logarithmic scaled y axis (JSFiddle here, adapted from a basic demo chart)  $(function () {     $('#container').highcharts({         chart: {             type: 'column'         },         yAxis...
I have a data set in an array ranging from 0.00164737 to 0.0021966     What I am trying to do is get the shape fixed by logarithmic scale, then to normalize it ready for drawing on the canvas. Say normalized to 0,100 or -100,0,100 so I can work in pi...
I would like to display data for time values on the y-axis of a Highchart's graph. These time values can vary from 10 seconds up to 10 days  Currently I can set the y-axis type like so:  yAxis: {   type: 'logarithmic' }   And get somethin...
I'm using this BigInteger.js for some calculations:  let myBigInt = bigInt(20).pow(200) // gets 160693804425899027554196209234116260252220299378279283530137600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
I'm having trouble with calculating a logarithm and using the answer as a variable. Can anyone help?  Here's an example - the simple 4*4 calculation appears when the first button is clicked, but nothing happens when the ma...
I'm trying to write a slider that has logarithmic scaling to control a microphone RMS threshold.  I have written the function below that may be ghastly (maths is not my strong suit) but does seem to do the logarithmic scaling that I want. However...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.