MGS_Sebastien
Members-
Content count
36 -
Joined
-
Last visited
Everything posted by MGS_Sebastien
-
Hi, I found a bug in FC, when you're setting : decimals: "0" and you have negative values in your graph, the value is not well rounded. In example : -3.5 should be rounded at -4, currently it show -3. I think this is because your devs are using the Math.round integrated function of JS, but this is something wrong. Try this dataSource : const chartData = { chart: { caption: "Test decimals", theme: "fusion", decimals: "0" }, data: [ { label: "test1", value: "3.5" }, { label: "test2", value: "-3.5" }, { label: "test3", value: "-2.5" }, { label: "test4", value: "+2.4" }, { label: "test5", value: "-10.5" } ] }; I suggest to use this function I delveloped myself that I always use to have good rounding relative numbers (my variables are in french but it works) : /** * Permet d'arrondir un nombre à la décimale souhaitée * @param {number} nombre Nombre à arrondir. * @param {number} decimales Nombre de décimales à arrondir. (Par défaut 0) * @returns {number} */ function arrondi(nombre, decimales = 0) { if (decimales < -1) throw new Error("Le nombre de décimales ne peut être inférieur à -1."); var neg = nombre < 0; if (decimales == -1) return nombre; else { var nombre_abs = Math.round(Math.abs(nombre) * Math.pow(10, decimales)) / Math.pow(10, decimales); if (neg) return -nombre_abs else return nombre_abs; } }
-
Hi all, I'm trying to use the Vuejs component for fusioncharts. How do I must proceed ? I mean that I know there's a download function on your website : https://www.fusioncharts.com/vue-js-charts?framework=vue but it says this will be a trial. I have a licensed fusioncharts.js, how do I get the good version of Vuejs plugin ? Thank you
-
Hi Akash, Good thank you for noticing me !
- 2 replies
-
- stackedbar2d
- maxbarheight
-
(and 2 more)
Tagged with:
-
Hi, I think there's a bug : maxBarHeight isn't working anymore. Please find the issue on this code pen link.
- 2 replies
-
- stackedbar2d
- maxbarheight
-
(and 2 more)
Tagged with:
-
Incomplete data value custom font style 3.14.1
MGS_Sebastien posted a topic in Suggestions & Requests
Hi all, I just saw that the 3.14.1 is out, and I just want to say that you did a very nice work just for that new thing : "Some attributes of data plot cosmetics like valueFontColor, valueBgColor and valueBorderColor will now apply at data series and individual data point level." However ... Why did you stopped at these styles ? "valueFontBold" and "valueFontSize" should have been added too at least, both are really useful I think (might be "valueFontAlpha" too ? But not sure in which case to use it yet) ! What do you think of it ? -
Hi, I have a new request. Currently, we cannot do whatever we want about the y-axis. I mean we should be able to specify what values we want to show exactly. Whatever are the values in the dataset or whatever is the height of the graph, I want to be able to specify exactly y axis labels needed : in example if I want to have 25% 50% 75% or 10% 20% etc or 22% 44% 88% or 7% 14% 21% etc... etc... How could I do this ? I don't think it's possible with FS at this time. A new functionality related to this could be very nice to be developed I think. What do you think ?
-
Hi ! My question is simple : How to place values inside a pie/doughnut chart instead of outside ? Sébastien
-
Pie or doughnut chart placing values inside
MGS_Sebastien replied to MGS_Sebastien's topic in General usage
Hi, Just saw that in 3.14 you've added the possibility to place the values inside, this is very good. I saw also that you take in account my second ask to set a min value before showing them, this is very good too. Thank you ! -
Hi all, I have noticed a pro blem that occurs in stackedbar2d graph. The values that are showed by "showSum" property are not aligned at middle (vertically) like below. I know that I can use annotations for this sum too but it could be centered with the native option directly. Have a nice day, Sébastien
-
Sum values of stackedbar2d not centered
MGS_Sebastien replied to MGS_Sebastien's topic in Bug Reports
Hi, Very happy that you took in account this, it will be helpful thank you. -
Doughnut2D enableRotation property ignored
MGS_Sebastien replied to MGS_Sebastien's topic in Bug Reports
Hi ! Oh sorry, the bug is between the chair and the screen this time -
Hi, I report a new bug, please see this fiddle : https://jsfiddle.net/8jn9hqws/ The rotation is active while it shouldn't with "enableRotation" :"0"
-
Sum values of stackedbar2d not centered
MGS_Sebastien replied to MGS_Sebastien's topic in Bug Reports
Hi Akash, I am using the latest version 3.13.3-sr1 Please see in this fiddle, may be it's a particular property that is breaking the alignment ? https://jsfiddle.net/xvuto9ks/1/ -
Pie or doughnut chart placing values inside
MGS_Sebastien replied to MGS_Sebastien's topic in General usage
Hi Akash, As I use my doughnut in a dashboard, the values are always changing so this means annotations manually placed is very difficult. The ideal thing could be to have a property (like 'placeValuesInside': '1') to place the values inside (and leave label outside). Another property could be added in addition : 'minDisplayValue': '5' which hide values under the specified number. (Label stills outside and displayed ! The tooltip will make the job) Sébastien -
multi series line chart legend click animation disabled
MGS_Sebastien posted a topic in Suggestions & Requests
Hi, When FC was on 3.10 version, the multi-series line chart had a nice functionality : when clicking on legend, the line is going from its position to below and by clicking again from below to its position, this was really a nice animation. Since the 3.11 version, why did you disable it ? Is there any option to reactivate it ? Thank you, Sébastien -
multi series line chart legend click animation disabled
MGS_Sebastien replied to MGS_Sebastien's topic in Suggestions & Requests
Thanks for the reply, i'm glad to see there's an option to do it. -
new property minLabelWidthPercent for bar charts
MGS_Sebastien posted a topic in Suggestions & Requests
Hi, Is it possible to add new property "minLabelWidthPercent" (as the "maxLabelWidthPercent" exists) for next versions... I mean when you have two bar charts which pass from right to down in responsive dashboard, how can you fix the same horizontal alignement between the two charts ??? it's impossible actually. My labels o the two charts are dynamics, so I can't put <br/>... And can't put blank chars on all labels because it will align on left... I already found something : I get the label length of chart 1 I get the label length of chart 2 I calculate diff between the two label length And i put blank chars on the lower length of the two... The graphs are aligned... BUT this can be corrected easily with a new property : minLabelWidthPercent What do you think of that ? Sébastien -
Hi, I have a new suggestion for your developper team : The ability to apply the same color as the seriename color to the font values !! It could be particulary useful on radar charts for exemple or on any charts where the values are overlaping. A property like : "applySeriesnameColorToValuesFontColor": "1" at chart level object and may be at dataset level object too ? (apply it only for some but not all for exemple) I am surprised that isn't implemented yet. (or might be it is done and I didn't find it...) Sébastien
-
same value font color than seriesname color
MGS_Sebastien replied to MGS_Sebastien's topic in Suggestions & Requests
Hi, Thanks for the reply. Yes, the tip (more than a solution) is to use annotations, we already tested : The texts annotations slow the perfs of the whole dashboard (and I have 2 radars until 5 dataset object in !). After reflexion, I've decided to tell at my customer that it will not be possible, only because of perfs. Sébastien -
new property minLabelWidthPercent for bar charts
MGS_Sebastien replied to MGS_Sebastien's topic in Suggestions & Requests
Hi, Ok thank you Prerana This is a nice tool, I didn't know it ; I think I will use it for other cases In your fiddle, you forgot to wrap with 'false' parameter of getSmartText method. However if a newbie developper use FusionCharts, this will take a lot of time to manage these labels, a simple property on the chart could be more effective for the dashboard developpement speed. (And also for experimented developpers it takes some time to develop any tips to find a solution) Sébastien -
new property minLabelWidthPercent for bar charts
MGS_Sebastien replied to MGS_Sebastien's topic in Suggestions & Requests
Hi, Hmm your answer seems that the wrapping of the text will not be implemented early. It could be nice if your developpers take a look at this. I think I'm not the only one who thought about it. Thanks for the answer anyway, Sébastien -
new property minLabelWidthPercent for bar charts
MGS_Sebastien replied to MGS_Sebastien's topic in Suggestions & Requests
Prerana, Oh nice find, thank you very much... This isn't I want have the last word ^^ but there's something which is missing yet : an automatic wrapping of the text ! I know already we can put {br} but with random labels it needs some "other than FusionCharts" stuff... Sébastien -
new property minLabelWidthPercent for bar charts
MGS_Sebastien replied to MGS_Sebastien's topic in Suggestions & Requests
Hi, You can find here the problem : http://jsfiddle.net/y3H2G/2011/ As you can see I can't prevent the alignement easily (I mean with FusionCharts configuration attributes) Sébastien -
Hi ! I think that I ask is not possible but I try I want to do multiplications and divisions with macros of annotations. For exemple here the JSFiddle : http://jsfiddle.net/x5FBh/620/ I try to put the green circle (last annotation in code) in the center of the canvas, how can I do that ? I tried like the JSFiddle exemple : $canvasStartX + ($canvasWidth / 2) But the ($canvasWidth / 2) is ignored, when i remove brackets / 2 is ignored. Do you have any other solution for me ? Keep in mind the chart is dynamically resized, so fixed values don't work. Thank you, Sébastien
- 5 replies
-
- division
- multiplication
-
(and 3 more)
Tagged with:
-
Calculation issue with annotations macros
MGS_Sebastien replied to MGS_Sebastien's topic in General usage
Hi Vishalika, Thanks for this. Well I didn't take exactly your exemple but i took : yaxis.0.label.5.x to place on 0, and yaxis.0.label.6.x to place on 20 and etc... I am happy thats finaly works Thank you, Sébastien- 5 replies
-
- division
- multiplication
-
(and 3 more)
Tagged with: