Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
630
Bubble chart with text inside the bubbles
posted

Hello,

i found an image "What's_New_in_2013_Volume_2_3.png" in the 2014.1 Documents/images folder. It shows a bubble chart with text (for e.g. {75, 20})inside the bubbles. How can i adress this value for each bubble?

I want to write the value (radius) of each bubble into it.

Thanks in advance,

Johann

  • 18495
    posted

    Hello Johann,

    Thank you for contacting Infragistics.

    If you navigate to the Sample folder in the Nuclios installation folder, you'll see a "SamplesBrowser.xcodeproj" file.  Open that file and you'll find a large number of samples showing you how to do various things with the controls in Nuclios.

    The file you should open is under SamplesBrowser/Samples/Chart/Features.  The name of the file is "igCustomMarkersViewController.m".  You will also want to look at "igCustomMarkersViewController.h".  This sample will show you how to implement what you saw in the image you references.

    Please let me know if you have any other questions about this.

    • 630
      Offline posted in reply to Dave Frischknecht

      Hello Dave,

      thanks for helping me. It's curios if i add "public override UIView ResolveMarkerView.... which generates good looking labels inside the bubbles. But the small bubbles near the text of the legends are now no more visible. Is there any reason/option for that?

      Thanks,

      Johann

       bubble_2

       

       

      • 630
        Offline posted in reply to Dave Frischknecht

        Hello Dave,

        i have done a small sample but it works. So i took the sample and pimped it up step by step with all the other stuff. Curiously it is still ok....

         

        Thanks

        Johann

        • 18495
          Verified Answer
          posted in reply to Johann Geßler

          Hello Johann,

          Thank you for your response.

          Please provide a sample project showing what you have attempted so far.  This way I can look at it, make any modifications that are necessary, and send it back.

          • 630
            Offline posted in reply to Dave Frischknecht

            Hello Dave,

            i wrote down the code but it was not called inside the delegate. Is there a property like "IsCustomCategoryStyleAllowed" or something else i have to set for each series as i did it for my waterfall chart.

             

            Thanks

            Johann

            • 18495
              posted in reply to Johann Geßler

              Hello Johann,

              Thank you for your response.

              Try adding the following selector to your code.

              -(UIView *)chartView:(IGChartView *)chartView viewForLegendItemInSeries:(IGSeries *)series
              {
                  UIView *legendIcon = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 10)];
                  legendIcon.backgroundColor = [series.actualBrush getUIColor];
                  legendIcon.layer.cornerRadius = 5;
                  return legendIcon;
              }

              Please let me know if you have any other questions about this.

              -(UIView *)chartView:(IGChartView *)chartView viewForLegendItemInSeries:(IGSeries *)series

              {

                  UIView *legendIcon = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 10)];

                  legendIcon.backgroundColor = [series.actualBrush getUIColor];

                  legendIcon.layer.cornerRadius = 5;

                  return legendIcon;

              }